json - what is the default syntax of an API call? -
could me understand specific example of api link following api?
https://engradesandbox.com/docs/
they show examples in documentation json result/return of api, not actual example of call like.
i've noticed api's, show possible result data, not default url syntax. it's frustrating, because looking through existing restful tutorials isn't fruitful on subject either. how know actual api call should like?
that tell you do.
all "calls" http post url specified. if click on 1 of them, takes page explains input data method.
for example, see class-behavior-add function. call function, you'd post url specify (https://api.engradesandbox.com/ of posting), , content of post xml or json contains fields specified here.
example post data json:
{ "apitask": "class-behavior-add", "apikey": "your_api_key", "ses": "session token id", "clid": 1234567890, "stuid": "student id", "date": 123456789, "mark": 12, "points": 123 } example post data xml:
<engrade> <apitask>class-behavior-add</apitask> <apikey>your_api_key</apikey> <ses>session token id</ses> <clid>1234567890</clid> <stuid>student id</stuid> <date>123456789</date> <mark>12</mark> <points>123</points> </engrade>
Comments
Post a Comment