GET badges/getAll
Returns a list of available badges
URL:
http://mobileroadie.com/api/badges/getAll
Formats
XML, JSON, HTML
HTTP Method(s):
GET
Parameters:
-
api_key
-
Required
-
Usage Example
http://mobileroadie.com/api/badges/getAll/key/4d4ba30d73b77f7/format/xml
Code Example
<?php $handle = curl_init("https://mobileroadie.com/api/badges/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>1939</id> <description>Posted a photo</description> <threshold>1</threshold> <imgurl>http://cdn.mblrd.com/i/1-1/ca/aHR0cDovL2dzMy5tYmxyZC5jb20vQmFkZ2VzL3NldHMvcm91Z2gvYnJvbnplX3Bob3RvZ2VuaWMuanBn</imgurl> <rule>comment_photo</rule> <grouping>Photogenic</grouping> <url></url> <created>2011-06-07 00:44:19</created> <app_id>77</app_id> <badge_id>31</badge_id> <active>1</active> <thumbnail_img> <width>70</width> <height>70</height> <urls> <at1x>http://cdn.mblrd.com/i/70-70/spng/aHR0cDovL2dzMy5tYmxyZC5jb20vQmFkZ2VzL3NldHMvcm91Z2gvYnJvbnplX3Bob3RvZ2VuaWMuanBn</at1x> <at2x>http://cdn.mblrd.com/i/140-140/spng/aHR0cDovL2dzMy5tYmxyZC5jb20vQmFkZ2VzL3NldHMvcm91Z2gvYnJvbnplX3Bob3RvZ2VuaWMuanBn</at2x> </urls> </thumbnail_img> <large_img> <width>140</width> <height>140</height> <urls> <at1x>http://cdn.mblrd.com/i/140-140/spng/aHR0cDovL2dzMy5tYmxyZC5jb20vQmFkZ2VzL3NldHMvcm91Z2gvYnJvbnplX3Bob3RvZ2VuaWMuanBn</at1x> <at2x>http://cdn.mblrd.com/i/280-280/spng/aHR0cDovL2dzMy5tYmxyZC5jb20vQmFkZ2VzL3NldHMvcm91Z2gvYnJvbnplX3Bob3RvZ2VuaWMuanBn</at2x> </urls> </large_img> </item> </xml>
Comments
0 comments
Please sign in to leave a comment.