API 20131021 will implement a REST interface

rkulagow
SD Staff
Posts: 915
Joined: Tue Aug 14, 2007 3:15 pm

Re: API 20131021 will implement a REST interface

Post by rkulagow » Wed Apr 30, 2014 2:10 pm

cwchapma wrote:When I try to get a token, I send:

Code: Select all

{
  "username": "cwchapma"
  "password": "sha1hex"
}
but keep getting:

Code: Select all

{
    "response": "INVALID_JSON",
    "code": 1001,
    "serverID": "AWS-SD-web.1",
    "message": "Unable to decode JSON",
    "datetime": "2014-04-30T14:49:13Z"
}
You're missing the comma between the two fields.

Code: Select all

{
  "username": "cwchapma",
  "password": "sha1hex"
}
I like to use http://jsonlint.com/

cwchapma
Posts: 42
Joined: Fri Mar 29, 2013 8:32 am

Re: API 20131021 will implement a REST interface

Post by cwchapma » Wed Apr 30, 2014 2:18 pm

Doh! Thanks. You're right. jslint is a good idea.

rkulagow
SD Staff
Posts: 915
Joined: Tue Aug 14, 2007 3:15 pm

Re: API 20131021 will implement a REST interface

Post by rkulagow » Wed Apr 30, 2014 4:45 pm

No problem. Glad that it wasn't my fault. :)

Post Reply