Skip to content

Tag: api

Securing php api to use in android application

I am newbie to android development. I am using android studio for developing an application. Things i have done Created a DB with two tables in it in MySQL. Created two separate api’s for both GET and POST methods. Successfully accessed both api’s What i have achieved for now Able to GET data form…

Google Drive API v3: Invalid field selection

I am using Google Drive API v3 to access about the drive like space quota. And, no matter what I do, I am stuck with this error: Please check that I am already making a perfect URL for the call: GET https://www.googleapis.com/drive/v3/about?fields=name But, still there is this error. Is there any parameter I …

How to validate a sale with PayPal REST API and IPN

I currently have a fully working cart and checkout process through PayPal _xcart method, but I want to migrate it to REST API, mainly because I want to mitigate the possibility of price-jacking. Currently my IPN does check for price jack and sets the according flags so the product doesn’t get downloaded…

Shopify password update using Shopify API

Can we update password for a User or Customer that already exists in Shopify using the Shopify API? Answer The User endpoint is available for Shopify Plus stores, but it is currently read only – no user management is possible via this API https://docs.shopify.com/api/reference/user

Redirect 302 on Laravel POST request

I’m developing a Laravel Web Service. When I try my POST routes with web forms, everything works fine, but when I try the same with a REST Client like Postman it doesn’t get me the response that should. It gives me status code 302, and redirects to “/”. What’s the problem? Answer…

Extract token from response url – Spotify API

I’m using this code to get a token from Spotify’s Web API: That results in this showing up in the browser: Great! But how do I extract “{token}” from the response and use it as a parameter in a request to the API? For example in the request to https://api.spotify.com/v1/users/{user_id}…

curl: (26) couldn’t open file

I am getting this error, when I am trying to call a box api through curl. curl: (26) couldn’t open file Can’t find why! I am calling this api with a correct file name- curl https://upload.view-api….