GET categories/getAll
Returns a list of categories
URL:
http://mobileroadie.com/api/categories/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/categories/getAll/key/4d4ba30d73b77f7/limit/10/format/xml
Code Example
<?php $handle = curl_init("https://mobileroadie.com/api/categories/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>%MCEPASTEBIN%<?xml version=“1.0” encoding=“utf-8"?> <xml> <item> <id>855515</id> <section_id>0</section_id> <parent_id>0</parent_id> <name>1ST_Level_category</name> <row_image/> <featured_image/> <bg_image/> <url/> <feature>none</feature> <created>2017-03-20 00:47:29</created> <sequence>0</sequence> </item> <item> <id>855516</id> <section_id>0</section_id> <parent_id>855515</parent_id> <name>2ND_Level_category</name> <row_image/> <featured_image/> <bg_image/> <url/> <feature>none</feature> <created>2017-03-20 00:48:05</created> <sequence>0</sequence> </item> <item> <id>855517</id> <section_id>0</section_id> <parent_id>855516</parent_id> <name>3RD_Level_category</name> <row_image/> <featured_image/> <bg_image/> <url/> <feature>none</feature> <created>2017-03-20 00:48:40</created> <sequence>0</sequence> </item>
Comments
0 comments
Please sign in to leave a comment.