API

LocationBox API

Social Event List

(powered by dakick.com services)

Social Event Service lists social events with their locations based on criterias which you can find below.

A Social Event List request must look like this:

http://www.locationbox.com.tr/locationbox/services?Key=key&Cmd=SocialEventList&Typ=output_format&Id=social_event_id


Request Parameters


Key: LocationBox user key. (Register for user key)
Cmd: LocationBox service name. (SocialEventList)
Typ: Response format. (XML or JSON)
Id: ID of SocialEvent

Response Parameters


XML Response

Social Event List response returns in XML format when the Typ parameter is set as "XML".

Below is an example for a Social Event List request which is expected to return a response in XML format .

http://www.locationbox.com.tr/locationbox/services?Key=key&Cmd=SocialEventList&Typ=XML

The response will be as following:

<response>
 <transactionid>LBS_375259130</transactionid>
 <status>0</status>
 <errno />
 <errdesc />
 <items>
  <socialevent>
   <id>7949980</id>
   <name>Gemiten Gnmze Bebek rnleri Sergisi</name>
   <description>"Gemiten Gnmze Bebek rnleri Sergisi" 10-25 Kasm tarihleri arasnda Palladium AVM'de.</description>
   <category>140</category>
   <location>Palladium AVM</location>
   <startdate>2012-11-10 10:00:00</startdate>
   <enddate>2012-11-25 22:00:00</enddate>
   <timezone>Istanbul</timezone>
   <latitude>40.9862</latitude>
   <longitude>29.1007</longitude>
  </socialevent>
  <socialevent>
   <id>7869738</id>
   <name>Memduh Kuzay Resim Sergisi</name>
   <description>Trkiyenin yansra Amerika ve Almanyada srdren Memduh Kuzayn Tolga Eti SanatEvinin sanat anlayna paralel gerekletirdii resim sergisi 3 Kasm 8 Aralk 2012 tarihleri arasnda izlenebilir.</description>
   <category>140</category>
   <location>Tolga Eti Sanatevi</location>
   <startdate>2012-11-03 10:00:00</startdate>
   <enddate>2012-12-08 19:00:00</enddate>
   <timezone>Istanbul</timezone>
   <latitude>40.9802</latitude>
   <longitude>29.0823</longitude>
   <distance>3629</distance>
  </socialevent>

   ...

  <socialevent>
   <id>7853952</id>
   <name>Boazii Caz Korosu Konseri</name>
   <description>Yaklak 35 kiilik kadrosuyla ada mzikten caza, hatta ok sesli trk dzenlemelerine kadar uzanan ok geni bir repertuvara sahip olan Boazii Caz Korosu zengin bir programla 19 Kasm akam Sreyya Operasnda.</description>
   <category>128</category>
   <location>Sreyya Operas</location>
   <startdate>2012-11-19 20:00:00</startdate>
   <enddate>2012-11-19 22:00:00</enddate>
   <timezone>Istanbul</timezone>
   <latitude>40.9881</latitude>
   <longitude>29.0286</longitude>
   <distance>6481</distance>
  </socialevent>
  </items>
</response>

JSON Response

Social Event List response returns in JSON format when the Typ parameter is set as "JSON".

Below is an example for a Social Event List request which is expected to return a response in JSON format .

http://www.locationbox.com.tr/locationbox/services?Key=key&Cmd=SocialEventList&Typ=JSON


The response will be as following:


{ "transactionid": "LBS_1953422", "status": 0, "items": [ { "id": 7949980, "name": "Gemiten Gnmze Bebek rnleri Sergisi", "description": "Gemiten Gnmze Bebek rnleri Sergisi 10-25 Kasm tarihleri arasnda Palladium AVM`de.", "category": 140, "location": "Palladium AVM", "startdate": "2012-11-10 10:00:00", "enddate": "2012-11-25 22:00:00", "timezone": "Istanbul", "latitude": 40.9862, "longitude": 29.1007 }, { "id": 7869738, "name": "Memduh Kuzay Resim Sergisi", "description": "Trkiyenin yansra Amerika ve Almanyada srdren Memduh Kuzayn Tolga Eti SanatEvinin sanat anlayna paralel gerekletirdii resim sergisi 3 Kasm 8 Aralk 2012 tarihleri arasnda izlenebilir.Memduh Kuzayn resimleri yurt dnda da sergilenmekte ve koleksiyonlarda yer almaktadr.", "category": 140, "location": "Tolga Eti Sanatevi", "startdate": "2012-11-03 10:00:00", "enddate": "2012-12-08 19:00:00", "timezone": "Istanbul", "latitude": 40.9802, "longitude": 29.0823 }, ... { "id": 7853952, "name": "Boazii Caz Korosu Konseri", "description": "Yaklak 35 kiilik kadrosuyla ada mzikten caza, hatta ok sesli trk dzenlemelerine kadar uzanan ok geni bir repertuvara sahip olan Boazii Caz Korosu zengin bir programla 19 Kasm akam Sreyya Operasnda.", "category": 128, "location": "Sreyya Operas", "startdate": "2012-11-19 20:00:00", "enddate": "2012-11-19 22:00:00", "timezone": "Istanbul", "latitude": 40.9881, "longitude": 29.0286 } ] }

transactionid: The id of response given by LocationBox Service. Every response can be tracked using transactionid when necessary.
status: Response format. (XML or JSON)
result:

Status Codes
0 -- Success
1 -- Fail

errno: Error code
errdesc: Error definition

Error Codes
10001 Error processing your request. Please try again soon.
Cmd parameter is misspelled/not found.
10011 Error processing your request. Please check the Cmd parameter.
Cmd is not specified.
10012 Error processing your request. Please check the Key parameter.
Key is not specified.
10013 Error processing your request. Please check the Key parameter.
Key is invalid.
20012 No data found.