ltworf / vasttrafik-cli

Migrated to codeberg
https://codeberg.org/ltworf/vasttrafik-cli/
GNU General Public License v3.0
8 stars 1 forks source link

Removed JSONP callback parameter + related hardcoded string magic #4

Closed kchr closed 10 years ago

kchr commented 10 years ago

For more reliable (and standardized) JSON decoding of responses, I removed the callback parameter that were sent with all requests. This parameter creates a JS function scope around the response data, which is supposed to be passed to a browser handler when done, in some capacity.

When this was removed, the additional substr massage of response data went along as well.

As a bonus I also added parsing of datetime parameter in the board method.

ltworf commented 10 years ago

Did you merge back after I accepted the other pull request? I think some changes are repeated?

kchr commented 10 years ago

Doing a new pull request with comments removed and previous commits merged.