1) Create Event API:-
This API will allow creating an event.
Method - POST
Url - http://192.168.56.101/testJT/index.php?option=com_jticketing&task=eventform.save
Request Params:-
Table :- #__jticketing_events
Param Name |
Mandatory |
Comments |
id |
NO |
INT |
asset_id |
NO |
INT |
title |
YES |
VARCHAR |
created_by |
YES |
INT |
catid |
YES |
INT |
state |
NO |
TINYINT |
image |
YES |
TEXT |
short_description |
NO |
TEXT |
long_description |
NO |
TEXT |
access |
NO |
INT |
startdate |
YES |
DATETIME |
enddate |
YES |
DATETIME |
booking_start_date |
YES |
DATETIME |
booking_end_date |
YES |
DATETIME |
online_events |
YES(default 0) |
TINYINT |
venue |
YES |
INT |
jt_params |
NO |
TEXT |
location |
NO |
TEXT |
Table :- #__jticketing_types
Param Name |
Mandatory |
Comments |
id |
NO |
INT |
title |
YES |
VARCHAR |
desc |
NO |
VARCHAR |
price |
YES(default 0) |
FLOAT |
deposit_fee |
NO |
FLOAT |
available |
YES(default 0) |
INT |
count |
NO |
INT |
unlimited _seats |
YES(default 0) |
TINYINT |
eventid |
YES |
INT |
max_limit_ticket |
NO |
INT |
access |
NO |
TINYINT |
state |
NO |
TINYINT |
Table :- #__jticketing_integration_xref
Param Name |
Mandatory |
Comments |
paypal_email |
YES |
VARCHAR |
Output Parameters
Table :- #__jticketing_events
Name |
Remarks |
Example |
id |
Event id |
9 |
asset_id |
|
|
title |
Event Title |
Demo One |
created_by |
Super User |
626 |
catid |
Category Id |
8 (General) |
state |
Event state(publish/unpublish) |
1=(publish), 0=(unpublish) |
image |
Event Image |
testJT/media/com_jticketing/images/8a2dc485b1218152249927cc0b0cdcbf-images--11-.jpg |
short_description |
Event Short Description |
Mention in short. E.g. This is a Joomla Event |
long_description |
Event Long Description |
Describe Event description in Detail |
access |
|
|
startdate |
Event start date |
2016-05-24 |
enddate |
Event end date |
2016-05-25 |
booking_start_date |
Event booking start date |
2016-05-24 |
booking_end_date |
Event booking end date |
2016-05-25 |
online_events |
Choose Online Event |
By default it is offline(0), online=1,offline=0 |
venue |
Event Venue |
2 |
jt_params |
If event is online then call plugin trigger e.g.adobe |
Event url |
Table :- #__jticketing_types
Name |
Remarks |
Example |
id |
Ticket Type Id |
10 |
title |
Ticket Title |
Golden |
desc |
Ticket Description |
This is golden ticket |
price |
Ticket Price(default 0) |
100 |
deposit_fee |
|
|
available |
Available Tickets |
100 |
count |
Ticket Count |
100 |
unlimited _seats |
Unlimited Seats(default 0) |
0 |
eventid |
Event id |
9 |
max_limit_ticket |
|
|
access |
|
0 or 1 |
state |
Ticket Type state(publish/unpublish) |
1=(publish), 0=(unpublish) |
Table :- #__jticketing_integration_xref
Name |
Remarks |
Example |
paypal_email |
Email Id(Not compulsory needed In case payment to event owner) |
Response Params:-
Param Name |
Comments |
success |
true/false |
message |
Error message in case the API fails |
data.result |
Array containing a single create event object when there is a success.Otherwise empty array. |
Create Event Object Structure:-
{ "id" : "",
"asset_id" : "",
"title" : "",
"created_by" : "",
"catid" : "",
"state" : "",
"image" : "",
"short_description" : "",
"long_description" : "",
"access" : "",
"startdate" : "",
"enddate" : "",
"booking_start_date" : "",
"booking_end_date" : "",
"online_events" : "",
"venue" : "",
"jt_params" : "",
"location" : "",
"ticket type": {
"id" : "",
"title" : "",
"desc" : "",
"price" : "",
"deposit_fee" : "",
"available" : "",
"count" : "",
"unlimited_seats" : "",
"eventid" : "”,
"max_limit_ticket" : "",
"access" : "",
"state" : ""}