I try to build my own API. I begin so my only model for the moment will be a “User”. Here is how I would like to call my API : HTTP/POST http://example.com/api/user/ # get all the users HTTP/…
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 …
Active Collab notify user when create, close or reopen task using API
I have created task using Active Collab API also working with close task and reopen task using API. Now if I create or close or reopen task then want to notify user but I don’t know how to do this using Active Collab API. Below is my code for create task, close task and reopen task. /* create task using
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….
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’ =>…