Dani 4,084 The Queen of DaniWeb Administrator Featured Poster Premium Member

I know I promised not to make anymore drastic changes to the API, but ... well ... I lied.

The two API write operations (voting on posts and watching/unwatching articles) used to always respond with a JSON object in the format success: true or success: false

Now, they return the following:

  • If successful, a JSON object with information about the action that was performed
  • If unsuccessful and JSON was requested, an HTTP 400 error
  • If unsuccessful and JSONP was requested, a JSON object with a bad request error message
pritaeas commented: Thank you +0
<M/> commented: Your lie was helpful :D +0
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.