I'm attempting Authenticating applications using the cURL example in the documentation [1] to request an access token. I'm getting the following error:
{"error":"json_parse","timestamp":1390766173799,"duration":0,"exception":"org.co
dehaus.jackson.JsonParseException","error_description":"Unexpected character (''
' (code 39)): expected a valid value (number, String, array, object, 'true', 'fa
lse' or 'null')\n at [Source: org.usergrid.rest.filters.MeteringFilter$InputStre
amAdapter@22838071; line: 1, column: 2]"}
I've tried the Authenticating application users cURL example [2] as well. It returns the same error. I actually started here, but thought maybe I had some issue with the user, so I tried to authenticate the application. I'm pretty sure I have the correct client_credentials.
Not sure what the issue is here. Looks like it's choking on the single quote, but I've seen other examples posted here that apparently use the single quote successfully. My cURL installation seems to be working fine otherwise (I thought maybe I had an issue in configuration).
Is it possible there is some bug/misconfiguration on Apigee side? or maybe the example code is wrong :/
[1] http://apigee.com/docs/app-services/content/authenticating-users-and-application-clients#authenticating-applications [2] http://apigee.com/docs/app-services/content/authenticating-users-and-application-clients#authenticating-application-users-user-login-