Due to PCI compliant reasons we're going to turn off support for TLS v1.0 on all of our servers.
Please check/update you API implementations to support TLS v1.2 until 29.06.2018

Difference between revisions of "REST API Events"

From XING Events Developer Documentation
Jump to: navigation, search
Line 28: Line 28:
 
| [[REST_API_Formats#Country|Country]]  
 
| [[REST_API_Formats#Country|Country]]  
 
| <tt>RWC</tt><br>  
 
| <tt>RWC</tt><br>  
| The country where the event will be held. This also determines the currency of the [[REST_API_TicketShops|ticketshop]]. '''Required'''<br>
+
| The country where the event will be held. This also determines the initial currency of the [[REST_API_TicketShops|ticketshop]]. '''Required'''<br>
 
|-valign="top"
 
|-valign="top"
 
| description<br>  
 
| description<br>  

Revision as of 08:41, 19 July 2010

Object type: event

This page contains information about all properties and methods regarding events.

Properties

Attributes: R - accessible in read requests W - accessible in write (update) requests C - accessible in create requests

Property
Type
Attributes Description
id
Integer
R--
The internal id of this object.
title
String
RWC
The title of the event.
country Country RWC
The country where the event will be held. This also determines the initial currency of the ticketshop. Required
description
String
RWC
The description of the event.
selectedDate
Date
RWC
The start date of the event. Required
selectedEndDate Date RWC
The end date of the event.
hostId Integer R-C
The internal id of the user, who will be the host of the event. Required
timezone Timezone RWC
The timezone of the event.
language Language RWC
The language of the event.
identifier String RWC
The public identifier of the event. The event page will be accessible at www.amiando.com/<identifier>.html.
organisatorDisplayName String RWC
The visible name of the organisator of the event. The name of the host (see hostId) will be used, if this property is empty.
partnerEventUrl String RWC
The url of the event on the partner page.
visibility Integer RWC
0 - invitation only 1 - private 2 - public. Default value is 2.
publishSearchEngines Boolean RWC
Should this event be visible to search engines?
searchEngineTags String RWC
Keywords if publishSearchEngines is true.
location String RWC
The location of the event.
locationDescription String RWC
The detailed description of the location of the event.
longitude Double RWC
The longitude of the event.
latitude Double RWC
The latitude of the event.
street String RWC
The street of the event.
street2 String RWC
The street (2. field) of the event.
zipCode String RWC
The zip code of the location of the event.
city String RWC
The city where the event will be held.
state String RWC
The state where the event will be held.
creationTime Date R--
The timestamp, when the event was created.
lastModified Date R--
The timestamp, when the event was last modified.

Objects

Objects inside an event object can be accessed through URLs like /api/event/<id>/<object>. For example /api/event/345543/ticketShop.

Name
Description
ticketShop Detailed information about the ticketshop of the event.

Methods

Exists

Call GET /api/event/exists
Parameters identifier — public identifier of the event to check
Description This request will check if the identifier with the unique <identifier> already exists. If it does, this identifier can't be used for creating new events.
Response {"exists":true,"success":true}

Create

Call POST /api/event/create
Parameters All properties marked with C. Required are hostId and sourceCountry.
Description This request will create an event and will return the internal id. The internal id can be used for read or update requests.
Response {"id":<internal id>,"success":true}.
Errors com.amiando.Event.IdentifierExists
See General Errorcodes.

Update

Call POST /api/event/<id>
Parameters All properties marked with W.
Description This request will update the properties of the event with the internal id <id>. Only properties which are provided as parameters will be updated.
Response {"success":true}.
Errors com.amiando.Event.IdentifierExists
See General Errorcodes.

Read

Call GET /api/event/<id>
Description This request will return the event object with the specified internal id. The response contains all properties marked with R.
Response {"event":{"title": ...}, "success":true}.
Errors See General Errorcodes.