Skip to content
Advertisement

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 the GET api. Able to POST

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 am missing? Please, can anyone tell me

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 (selling digital products only). Anyway more to the

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 it looks like in postman you should point

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}/playlists which needs the token in the header field. Thanks! Answer

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….

ZF2 Apigility Rest – unable to get multiple params

I’m using Apigility to build my Rest APIs. I want to build have the ability to take in multiple parameters. Such as http://mydomain.com/users/1/activities/4 I now this is possible from this page: https://github.com/zfcampus/zf-apigility/issues/10 I have edit my module route to: ‘route’ => ‘/users/:users_id/activities[/:activities_id]’, But, I don’t know how to retrieve users_id from the url. I tried grabbing the params in my

Advertisement