Get all routes

From MyMobileWorkers API
Revision as of 16:04, 14 November 2013 by Darren.atherton (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Summary

Get all routes
URL http://:base_url/:api_path/:version/routes/route/all?api_key=YOUR_KEY
Type GET
Params: api_key required
Response JSON

The get all routes method returns all routes configured for your company in the portal.

Example response

{
   "routes":[
      {
         "external_id":null,
         "route_code":"LIV-001",
         "route_limit":180.0,
         "route_name":"Liverpool-AM"
      },
      {
         "external_id":null,
         "route_code":"LIV-002",
         "route_limit":160.0,
         "route_name":"Liverpool-PM"
      },
      {
         "external_id":null,
         "route_code":"WID-001",
         "route_limit":0.0,
         "route_name":"Widnes-AM"
      }
   ]
}

Example curl request

curl "http://live.mymobileworkers.com/api/1/routes/route/all?api_key=TEST_KEY"

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox