Difference between revisions of "Get Categories"

From MyMobileWorkers API
Jump to: navigation, search
(Created page with "== Summary == {| border="1" class="wikitable" ! Get All Categories ! colspan="2" | |- ! URL | colspan="2" | http://:base_url/:api_path/:version/categories/all |- ! Type | c...")
 
(→‎Example response)
Line 35: Line 35:
 
   {
 
   {
 
       "name":"test2",
 
       "name":"test2",
−
       "external_id":"exampleId"
+
       "external_id":"exampleId2"
 
   }
 
   }
 
]
 
]

Revision as of 11:13, 12 August 2013

Contents

Summary

Get All Categories
URL http://:base_url/:api_path/:version/categories/all
Type GET
Params: api_key required
Response JSON

The Get All Categories method returns all categories corresponding to the company making the method call.

Response Parameters

Example response

[
   {
      "name":"exampleCategory",
      "external_id":"ss304"
   },
   {
      "name":"test1",
      "external_id":"exampleId"
   },
   {
      "name":"test2",
      "external_id":"exampleId2"
   }
]

Example curl request

curl "http://live.mymobileworkers.com:8080/api/1/categories/all/?api_key=darrenwebapi"

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox