Difference between revisions of "Get route limit"

From MyMobileWorkers API
Jump to: navigation, search
(→‎Example curl request)
(→‎Example curl request)
 
Line 31: Line 31:
 
== Example curl request ==
 
== Example curl request ==
  
−
curl "http://live.mymobileworkers.com:8080/api/1/routes/route/limit?api_key=TEST_KEY&route_code=ROUTE-001"
+
curl "http://api.mymobileworkers.com:8080/api/1/routes/route/limit?api_key=TEST_KEY&route_code=ROUTE-001"

Latest revision as of 12:50, 14 November 2016

[edit] Summary

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

The get route limit method returns the (weight) limit of a route as set in the portal.

[edit] Example response

{"limit":180.0}

[edit] Example curl request

curl "http://api.mymobileworkers.com:8080/api/1/routes/route/limit?api_key=TEST_KEY&route_code=ROUTE-001"

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox