Category "api"

Azure API Management - Versioning

We are currently having all our APIs in Azure API Management Portal. The versioning in the API code is handled using the version header. These APIs were deploye

Get Header Authorization value of a login api (sent with username and password in json body) using php curl

I am writing a code in PHP where i need to call and API (Sending username and password) and then fetch the authorization value. I tried some solutions which are

How to send Body Data to GET Method Request android

like this, I want to send json body request to GET API tried this but not worked public static void getQuestionsListApi2(final String requestId, final Str

How do I create a callback API in springboot framework?

The scenario goes something like this. I've a 3rd party system that accepts 'callback' endpoint and upon a specific event (at the 3rd party system), a new API r

Cannot get an advanced stats from IEX Cloud API

Cannot get the advanced-stats from IEX Cloud. Could you please help me to resolve this tackle? Just to clarify, it works for stats, quotes etc. import requests

Compute Date out of Timestamp from Binance-API (Python)

I received the servertime from the Binance-API,I try to work with and it looks like this: { "serverTime": 1518440400000 } The question is, how can I comput

Authentication error using cloudflare api

I repeatedly received an authentication error just like this (not me) when using the Cloudflare api. curl -X GET "https://api.cloudflare.com/client/v4/zones/<

How to send JSON format data in postman to django models that have a foreign key to another model?

I have tried to send a POST request to django views.py file using postman. It was working when I sent a POST and GET request to django models that haven't Forei

Sending POST request with POSTMAN to Java REST API and getting null values in the xml response

I am creating a REST Service in Java and now I am building the post method which has 2 parameters that has to be inputted as xml in postman (for test) and get a

OpenWeatherMap API to get weather of multiple cities in XHR

I am new to API. I am trying to get the weather of 2 cities, but I am not able to think of a solution. Here is my code: function loadDoc() { var xhttp = new X

What HTTP method should I use for an endpoint that updates a status field of multiple entities

I like to use the correct HTTP methods when I'm creating an API. And usually it's very straightforward. POST for creating entities, PUT for updating them, GET f

"TargetPlatform.windows is not yet supported by the maps plugin" - How to solve this

Im just trying to get google maps displayed on my emulator and i also used google_maps_flutter package but TargetPlatform.windows is not yet supported by the ma

Sorting artifacts using aql and cleanup old artifacts

I'm trying to sort the list of artifacts from jfrog artifactory but getting (The requested URL returned error: 400 Bad Request), in the jfrog documentation (htt

Simple Twinfield API request with Postman

I want to connect sales invoices with javascript/ google apps script. Therefore I want to test some things with Postman. I know, that the API works with XML and

Build a Wikipedia URL [closed]

How can I build a Wiki URL in java language? Is there any API ready to use?

java.lang.IllegalArgumentException: HTTP method annotation is required (e.g., @GET, @POST, etc.).Error when trying call apiInterface GET request

I get error when trying to call API interface get request. I am trying to pass a value through GET method. But I get this error in logcat Caused by: java.lang

file_get_contents(): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request

I am getting the error Warning: file_get_contents(https://partner.uat.shopeemobile.com/api/v1/item/categories/get): failed to open stream: HTTP request failed!

Home Assistant - correct syntax for extracting variable

So I am using the SmartThings API integration for my Samsung washer and dryer, and am trying to extract the following items into sensors- remaining time kids lo

Is there any string size limit in POST request? [duplicate]

I have to make a POST API (python), where the APP will send the encoded string of a file(base64 encoding) in the request body. But, for a larg

React Native Axios get response Skipped and Status Code 0

I got a problem with my react native app. while accessing API, I get a response Skipped and status code 0. it's shown by using reactotron to log the api respons