GET locations/getAll
Returns a list of locations data. This is used for one-off posts that display in the official news section of the app.
URL:
http://mobileroadie.com/api/locations/getAll
Formats
XML, JSON, HTML
HTTP Method(s):
GET
Parameters:
-
api_key
-
Required
-
-
offset
-
For pagination. Default is set to 0.
-
-
limit
-
Limit the number of results returned. Default is 50.
-
Usage Example
http://mobileroadie.com/api/locations/getAll/key/4d4ba30d73b77f7/limit/10/format/xml
Code Example
<?php $handle = curl_init("https://mobileroadie.com/api/locations/getAll/key/4d4ba30d73b77f7/limit/10/format/xml"); curl_setopt($handle, CURLOPT_HTTPAUTH, CURLAUTH_ANY); $response = curl_exec($handle); curl_close($handle); ?>
Example XML Response
<?xml version="1.0" encoding="utf-8"?> <xml> <item> <id>1539</id> <category_id>0</category_id> <name>Superman Museum</name> <address>517 Market Street</address> <city>Metropolis</city> <state>IL</state> <postal_code>62960</postal_code> <country>us</country> <phone>1231231234</phone> <url>http://www.mobileroadie.com</url> <imgurl>http://gs3.mblrd.com/i/480-480/s/aHR0cDovL21vYmlsZXJvYWRpZS5jb20vaW1nL2RlZmF1bHQtaW1hZ2UucG5n</imgurl> <icon_imgurl>http://gs3.mblrd.com/i/480-480/s/aHR0cDovL21vYmlsZXJvYWRpZS5jb20vaW1nL2RlZmF1bHQtaW1hZ2Uucasdf</icon_imgurl> <lat>37.15192</lat> <lon>-88.732989</lon> <store_hours>m-f, 5-9p</store_hours> <description>Lorem Ipsum!</description> <opentable>0</opentable> <created>2010-03-18 17:22:52</created> </item> </xml>
Comments
0 comments
Please sign in to leave a comment.