![Picture of Justin Picture of Justin](/graphics/unknown.gif)
Justin - 2014-11-18 05:30:46
Hello, thanks for the class... i'm trying to figure out how to use the POST method against Google Tasks, and this is what i'm posting, but i'm getting back an error. Any thoughts?
Array
(
[url] => https://www.googleapis.com/tasks/v1/lists/MDEyNzk3MTI4NDgzOTIwODMxNDM6MDow/tasks
[method] => POST
[params] => Array
(
[title] => Hello World
)
[options] => Array
(
[FailOnAccessError] => 1
)
)
I am trying to post this to Google Tasks, but I keep getting the error back,
ERRORit was not possible to access the API call: it was returned an unexpected response status 400 Response: { "error": { "errors": [ { "domain": "global", "reason": "parseError", "message": "This API does not support parsing form-encoded input." } ], "code": 400, "message": "This API does not support parsing form-encoded input." } }
I'm not enirely sure how to adjust this error. I can 'GET' information, but POSTING doesn't seem to work well.
Any help would be greatly appreciated.