API Calls shouldn't always be JSONP

  • Idea
  • Updated 3 years ago
  • Implemented
Currently calls to the JSON API always return a JSONP response (always have the function call wrapping the JSON). This is nice if JSONP is always used, but in my case I'd just like to get the JSON (currently I have to strip off the wrapped function call). Most implementations of JSON/JSONP I've seen/used/wrote only include the wrapped function if the call was made with a "callback" parameter.

I believe implementing your JSON API this way would make it more useful for those that are using the API in back-end server calls, rather than through a client-side JS method.
Photo of JayJ

Jay

  • 3 Posts
  • 0 Likes

Posted 3 years ago

  • 2
Photo of StogiS

Stogi

  • 6 Posts
  • 0 Likes
+1

In addition to what Jay wrote before. Today I was testing your API and I was sure that you are returning plain JSON. After an hour I started receiving JSONP instead of JSON.

Are you currently changing your API?

I would like to start using your boards API on my site and I need to be sure how to implement it so I won't have to change this code after release.
Photo of StogiS

Stogi

  • 6 Posts
  • 0 Likes
I saw recently that you changed API for listing jobs from user's board. Of course instead using plain JSON you added some stupid "jobsfeed();" wrapper around it.

I can't understand why you call this API a JSON API since it's not returning plain JSON.

I addition to that you are not responding to those posts.

So what's the point of leaving feedback and paying for your services? Can you answer to that?
Photo of StogiS

Stogi

  • 6 Posts
  • 0 Likes
I was wrong. You have not changed API response. You are changing it every fu***** 15 minutes.

Once it was wrapped with Request.JSONP* and later with jobsfeed*.

Can you make up your mind?
Photo of Andrew

Andrew, Co-Founder

  • 29 Posts
  • 1 Like
Hi Stogi.

Apologies for not responding to your last message.

It appears that this is a bug rather than a deliberate change. We're looking in to it now and will update this post once the issue is resolved.

Again, apologies for missing your previous messages it was unintentional I assure you.

Best,
Photo of StogiS

Stogi

  • 6 Posts
  • 0 Likes
Hi Andrew!

Thanks for response. Sorry for so much anger in the last post. You have few posts on the EasyJobsBoard feedback page so I was under the impression that you simply don't care about it.

It would be nice to have REST JSON API for your service.

Please let me know how the work of the resolution of that issue is going on.

Regards,
Michael aka Stogi
Photo of Andrew

Andrew, Co-Founder

  • 29 Posts
  • 1 Like
Hi Michael.

Apologies for the delay. We have now released a fix which solves the problems you were experiencing with the API endpoints. You will be able to retrieve content as raw JSON (with the correct mime type), or as a wrapped JSONP callback.

Let me know if you have any questions or notice anything unexpected.

Best,
Photo of StogiS

Stogi

  • 6 Posts
  • 0 Likes
Ok thanks for the info.

Regards,
Michael