API Post error code 101Answered

POST https://wyday.com/limelm/api/rest/
content-type: application/json

{    
   "api_key": "blahblahblah",  
   "format" : "json",
   "nojsoncallback": 1,
   "method" : "limelm.pkey.getDetails",
   "pkey_id": "3217267"
}

Returns

HTTP/1.1 200 OK
...
<?xml version="1.0" encoding="utf-8"?>
<rsp stat="fail">
 <err code="101" msg="Method not provided."/>
</rsp>

Meanwhile the same "GET" call works just fine with key data correctly returned

GET https://wyday.com/limelm/api/rest?api_key=blahblahblah&format=json&nojsoncallback=1&method=limelm.pkey.getDetails&pkey_id=3217267

Was I missing something during "POST"?

Thank you for your help.

Answer

You’re posting a JSON blob. Our web API neither knows nor cares about JSON input. POST parameters instead.

Thanks for the quick reply. Did you mean I need "stringify" the json before posting? I'd appreciate an sample used in POST parameters.  

Got it. Answer to my own question, here is an sample.

POST https://wyday.com/limelm/api/rest/
api_key=blahblahblah&format=json&nojsoncallback=1&method=limelm.pkey.getDetails&pkey_id=3217267