Skip to content

Tag: api

Getting OAuthCallbackError with nextjs Auth

I am trying to make a spotify analysis app that would analyse your Spotify data. But I am getting this error on authorization. Here is my auth file. this is my middleware this is my login.js It would be really great if someone could help me out here. Everytime I am trying to login,it’s throwing me this …

Outputting JSON from Curl APi call to Ajax

I am working on a course project in which I am required to use php to make api calls. The Ajax call looks like this: The php api call looks like this: This works perfectly. I have used the same routine to make similar calls go the geonames API and had no issues doing so as they provide the name

Best Practice of calling an API endpoint [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 12 months ago. Improve this question What is the best practice of returning when calling an API endpoint…