GET
/v1/resources/events/{idevent}
¶Returns information about the event.
Request Headers: | |
---|---|
|
|
Parameters: |
|
Query Parameters: | |
|
|
Response Headers: | |
|
|
Response JSON Object: | |
|
|
Status Codes: |
|
Request:
GET /v1/resources/events/5357baaff51600525c9e1397 HTTP/1.1
Accept: application/json
Authorization: key my-secret-api-key
Host: ticketscloud.org
Response:
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Transfer-Encoding: chunked
{
"created_at": null,
"id": "5357baaff51600525c9e1397",
"lifetime": "BEGIN:VEVENT\r\nDTSTART;VALUE=DATE-TIME:20140710T000000\r\nDTEND;VALUE=DATE-TIME:20140910T000000\r\nEND:VEVENT\r\n",
"org": "5357b929f51600525c9e1396",
"removed": false,
"status": "public",
"tags": [
"кошка",
"мука"
],
"title": {
"desc": null,
"text": "Семинар: милые котята"
},
"updated_at": null,
"venue": null,
"age_rating": 0
}
PATCH
/v1/resources/events/{idevent}
¶Creates a new event.
Request Headers: | |
---|---|
|
|
Parameters: |
|
Query Parameters: | |
|
|
Request JSON Object: | |
|
|
Response Headers: | |
|
|
Response JSON Object: | |
|
|
Status Codes: |
|
DELETE
/v1/resources/events/{idevent}
¶Removes an event.
Request Headers: | |
---|---|
|
|
Parameters: |
|
Response Headers: | |
|
|
Status Codes: |
|
Request:
DELETE /v1/resources/events/535fb19bdca6a90a9ca87882 HTTP/1.1
Accept: application/json
Authorization: key my-very-secret-key
Host: ticketscloud.org
Response:
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Transfer-Encoding: chunked
{}
GET
/v1/resources/events
¶Request Headers: | |
---|---|
|
|
Parameters: |
|
Query Parameters: | |
|
|
Response Headers: | |
|
|
Response JSON Array of Objects: | |
|
|
Response JSON Object: | |
|
|
Status Codes: |
|
Request:
GET /v1/resources/events HTTP/1.1
Accept: application/json
Authorization: key my-secret-api-key
Host: ticketscloud.org
Response:
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Transfer-Encoding: chunked
[
{
"created_at": null,
"id": "5357baaff51600525c9e1397",
"lifetime": "BEGIN:VEVENT\r\nDTSTART;VALUE=DATE-TIME:20140710T000000\r\nDTEND;VALUE=DATE-TIME:20140910T000000\r\nEND:VEVENT\r\n",
"org": "5357b929f51600525c9e1396",
"place": {
"address": "Театр кошек Юрия Куклачева",
"city": null,
"country": null,
"point": null
},
"removed": false,
"status": "public",
"tags": [
"кошка",
"мука"
],
"title": {
"desc": null,
"text": "Семинар: милые котята"
},
"updated_at": null,
"venue": null,
"age_rating": 0
},
{
"created_at": null,
"id": "5368b3cc9583cb96a035758e",
"lifetime": "BEGIN:VEVENT\r\nDTSTART;VALUE=DATE-TIME:20140810T190000\r\nDTEND;VALUE=DATE-TIME:20140810T220000\r\nEND:VEVENT\r\n",
"org": "5357b929f51600525c9e1396",
"place": {
"address": "Arena Moscow",
"city": null,
"country": null,
"point": null
},
"removed": false,
"status": "public",
"tags": [
"концерты"
],
"title": {
"desc": null,
"text": "MEGADETH"
},
"updated_at": null,
"venue": null,
"age_rating": 0
},
{
"created_at": null,
"id": "5368b3d39583cb96a035758f",
"lifetime": "BEGIN:VEVENT\r\nDTSTART;VALUE=DATE-TIME:20140813T190000\r\nDTEND;VALUE=DATE-TIME:20140813T220000\r\nEND:VEVENT\r\n",
"org": "5357b929f51600525c9e1396",
"removed": false,
"status": "public",
"tags": [
"концерты"
],
"title": {
"desc": null,
"text": "ДДТ. Презентация альбома «Прозрачный»"
},
"updated_at": null,
"venue": null,
"age_rating": 0
},
{
"created_at": null,
"id": "5368b3d49583cb96a0357590",
"lifetime": "BEGIN:VEVENT\r\nDTSTART;VALUE=DATE-TIME:20140916T210000\r\nDTEND;VALUE=DATE-TIME:20140916T230000\r\nEND:VEVENT\r\n",
"org": "53555b2256c02c17cb75791c",
"removed": false,
"status": "public",
"tags": [
"концерты"
],
"title": {
"desc": null,
"text": "Смысловые Галлюцинации. 25 лет в темноте"
},
"updated_at": null,
"venue": null,
"age_rating": 0
}
]
POST
/v1/resources/events
¶Creates a new event.
Request Headers: | |
---|---|
|
|
Parameters: |
|
Query Parameters: | |
|
|
Request JSON Object: | |
|
|
Response Headers: | |
|
|
Response JSON Object: | |
|
|
Status Codes: |
|