Questions tagged [api]

DO NOT USE: Tag with the library you mean, [api-design], or something else appropriate instead. Questions asking us to recommend or find an API are off-topic.

0
votes
1answer
7 views

MVC Controller Action Object Parameter Receives Null Values from AJAX POST

Using AJAX to send object including array value to MVC Controller action. Breakpoint shows that the Action is reach but the object receiving the string array is null. Call to Asp.net MVC Web Api ...
0
votes
0answers
7 views

C# API timeout on logical cache refresh

In Mongo logs there are intermittent entries below. During same time it is observed that the C# APIs accessing data from MongoDB timeout with 504 error. Please suggest the root cause of this problem ...
0
votes
1answer
18 views

A request to APIs in python. And displaying in the tkinter window

I'm trying to make some api calls from the Binance Exchange and do some live calculations, displaying results in a window. I have spent 4 hours and am still getting the same error. There is no other ...
-3
votes
2answers
29 views

How to make calls to RESTful API in Java [duplicate]

I am trying to use a companies API in my java program, but I am not given a jar file to set a classpath too which, from what I have been reading, is how you use API's in java. I have already gotten ...
0
votes
0answers
12 views

Is it possible to send a file as data using just a POST API endpoint in url form?

I have created a simple POST endpoint that looks something like "https://www.webpageonaws.com/main/upload/files" I know how to send data using node.js post requests but can a user simply use that ...
-2
votes
0answers
20 views

How to pass an argument to a library method?

How can I solve this simple problem ? #!/usr/bin/env python #How to pass an argument to a library method ? from bitmex import bitmex import sys from sys import argv number = float(sys.argv[1]) ...
-1
votes
1answer
19 views

How to pass api data from tableview to detail view in ios swift

I want to show my data from tableview to detail view screen which is coming from api. In my tableview class controller, i am using two xibs to display data. One is with image and another is without ...
-1
votes
1answer
8 views

steps to create a api in java spring framework?What all tools will be needed and the basic functioning?

I am new to java spring framework and want to start creating api's. I have seen a few tutorials on youtube but they didnt help me much. Eclipse should be used or IntelliJ
0
votes
0answers
6 views

Cisco WebEx API and Jabber API

Have anyone used Cisco Jabber and Cisco WebEx API ? I want to create a script in which i want to find those user account who are disabled in Webex and Jabber. I have searched google but unable to ...
-2
votes
0answers
18 views

Perform curl request in JavaScript/jQuery? [duplicate]

I'd like to receive all our support tickets (from Zendesk) with jQuery. How can I perform the following action with jQuery? I am not very familiar with this topic, so I would be glad if anyone could ...
-2
votes
1answer
26 views

Symfony controllers

I have the task of implementing an Api with FOSRestBundle, but a have told explicitly I can't use inheritance on my controllers, and also i can't use the service container(It's supposed to make the ...
0
votes
0answers
5 views

Exporting Results (responseBody) from Collection Runner in Postman

I have a collection runner that I am running against a CSV. I would like to export the 'ResponseBody' from the results as txt or csv. How can I achieve this?
0
votes
0answers
17 views

Can't see react page after serving data with .net core api

I want to show data in my react component but when I set API react doesn't work. It seems like middleware is setup wrong or I don't get how .net core and react go along. I know I basically run two ...
0
votes
1answer
14 views

DRF: Do not expost API

I am using Django with Django Rest Framework. I have disabled the browseable api in the settings.py file, however, when I visit http://example.com/api - where example.com is my domain - I get this ...
0
votes
0answers
51 views

How Can I use if/else for json ? I just wanna get 2 data , not all [duplicate]

I just need 2 data on json ,but I could not.How do I access the data with the use of an "if"? JSONArray JA = new JSONArray(textview); for (int i = 0; i < JA.length(); i++) { JSONObject JO = (...
0
votes
0answers
8 views

Docker exec via API: no such container if not on same node?

I've got a question regarding the use of exec of API (https://docs.docker.com/engine/api/v1.39/#tag/Exec). I'm on a random node and only one, and I'm requesting list of containers through API (via /...
1
vote
0answers
23 views

While fetching details using GET request, 401 error returns

I am trying to generate employee details by enabling a synthetic API monitor in Newrelic based on NODEJS. I have successfully generated an access token in first POST request but the second one is ...
0
votes
1answer
24 views

Put array of data return from Json Result Inside DataTable Using Ajax Jquery

please, can you help me with this, I am trying to get an array of data and object from JSON in datatable using ajax jquery but data table did not read columns of the array $('#Item_Table').DataTable({...
0
votes
1answer
21 views

Where to find source code of FirebaseCore? [on hold]

I'm trying to find firebase-core source code in order to undestand how really works the function logEvent(String key, Bundle b) of FirebaseAnalytics. I'm searching on the web, also the github page of ...
1
vote
1answer
15 views

Get Values in Net Core Api send via PostAsJsonAsync in net core Application

How can I get the values in Backend? Key is null and login is false. [FromQuery], [FromBody] or [FromForm] did not work net core Application (Frontend) HttpResponseMessage httpResponse = await ...
0
votes
0answers
18 views

Consuming your apps API with the default token driver

By default Laravel uses the token driver for authenticating to your app's API. See: docs I chose not to store the tokens in plaintext in the database, but to hash them as the docs describe. In the ...
0
votes
0answers
6 views

How to fix “unauthorized_scope_error with w_member_live permission”?

I tried to get w_member_live permission. But then I got a unauthorized_scope_error. How can I register w_member_live permission for my app?
-2
votes
0answers
12 views

Is there a free api for tracking Flights for airplane with using the ITIA number (Number of flight) [on hold]

Any one knows a free API for tracking airplane flight to tracv air flight with the flight number (ITIA number)?
0
votes
2answers
37 views

Laravel - Undefined variable: game_code

I am writing an endpoint for POST Request using the code below: public function unifiedrequest(Request $request) { // prepare content $password = $request->header('Password'); $...
0
votes
0answers
21 views

Passport token wrong behavior

I am working on laravel passport package. I have some issues regarding the functionality. I have a protected route for logout in auth middleware. When i revoke a token and hit the logout route it ...
0
votes
1answer
14 views

Getting information from forms to call api

I am trying to call an api with .netcore using MVC and razor pages. As a new learner of .netcore I am feeling difficulty in grasping the methodology of MVC working. I am trying to fill up a form from ...
0
votes
1answer
10 views

How to use events in hyperledger fabric to detect data change? (Independent of API Calls)

I want to detect status changes in my application and I want it to be independent of API Calls. Using Hyperledger Fabric chaincode events, how would I implement this to detect data change?
-1
votes
0answers
4 views

I want to create test suite for testing REST API's with Python

I have several API's which I trigger and test using postman. I want to write python test script for the same to test rest calls.How should I write simple test scripts to test and validate the rest ...
0
votes
0answers
7 views

Need documentation for *.analysis.windows.net/public/reports/querydata

I am reverse engineering an app that sends queries to SOMESERVERNAME.analysis.windows.net/public/reports/querydata via an HTTP POST of an JSON-structured query. Some initial lines of a sample query ...
1
vote
1answer
22 views

Symfony rest API custom 404 error pages in JSON format

I don't get how to customize error pages, in a JSON format for a REST API, written with Symfony. I made this small demo : As you can see, the project is set up with the Twig Bundle and I have ...
1
vote
0answers
21 views

How to get the border sizes of a userform?

I have a userform (userform1) with several controls. One control is a command button which will open a second userform (userform2). I want that userform2 opens immediately bellow the button and ...
-2
votes
0answers
25 views

online movie booking API for indian movies in PVR - ticketing system [on hold]

Hello i am trying to develop an online movie booking website for a client and i have no idea how or where will i get the API to do so, The basic question is how to book movie tickets online in india ...
-2
votes
3answers
23 views

I can't get data from JSON with python

I can't seem to get the last recorded price from a website API using JSON. I tried finding the error but it seems okay to me. The code is in python This is the Url that I have to GET: https://api....
0
votes
1answer
23 views

Goodreads API Error: List Indices must be integers or slices, not str

So, I'm trying to program a Goodreads Information Fetcher App in Python using Goodreads' API. I'm currently working on the first function of the app which will fetch information from the API, the API ...
0
votes
0answers
13 views

How to implement Service Security on public facing website

I am building a public facing website on the cloud. This website mostly has guest users who use to purchase items on it. A very small percentage of users ( say 1 out of 100) have user accounts. ...
0
votes
0answers
9 views

Azure Api Management - Trace not available despite sub keys and trace set to true

The trace tab always says: Trace location was not specified in the response or trace log is not available. This is despite me passing both an Ocp-Apim-Subscription-Key and Ocp-Apim-Trace in the ...
0
votes
0answers
9 views

how to handle push notification in flutter with api?

I'm struggling on how to handle push notification in flutter with rest API; what I want exactly is when the API gets a new message, the app should notify the user, so if there's someone who can help ...
0
votes
0answers
12 views

WP Rest API get post by slug with special characters (ex: !&')

I have posts with slugs with special characters. One of them is the following: http://localhost/wp-json/wp/v2/posts?slug=my-post! Unfortunately, WP REST API not showing the content since it has (!) ...
0
votes
2answers
18 views

Flutter - Get method api with laravel

I've flutter app and I'm trying to calling api, and get json but It doesn't work with me It shows to me this error I/flutter (13300): The getter 'length' was called on null. I/flutter (13300): ...
-1
votes
0answers
22 views

Multitenant .net core api with configurations

We have one .net core api, which is having business rules defined in configurations for multiple tenants. And goal is to make this api Multi Tenant so that, no matter which tenant sends the request, ...
0
votes
1answer
25 views

StatusCode: 405, ReasonPhrase: 'Method Not Allowed'

i'm building a Web Application to consume A REST FULL API ASP.Net Core Web Service, i have Problem when i update a records. i'm trying to Call Put Method from API ASP.Net core by ASP.Net Core ...
0
votes
0answers
13 views

Display Wordpress shortcodes over REST API to Native App

I'm trying to display one important shortcode over Rest API to my Native Android App but it's not displaying anything. It comes up blank and I don't know why. I am using a WilCity theme that comes ...
0
votes
1answer
14 views

Error on saving to local storage for Vue.js

In my Vue JS app I am trying to save data I get back from a rest api into a list component but I am getting the following error: Error in mounted hook: "SyntaxError: Unexpected token u in JSON at ...
-3
votes
1answer
19 views

Most versatile video player in container support [on hold]

I am programming website, that take videos from folders and place them to video player. And I would like to know, if there is some video player that supports ass, srt subtitles and mkv, avi, mp4 and ...
0
votes
1answer
16 views

Icinga2 API: How to set all services of a host into downtime?

I am trying to automate the setting and removal of downtimes on icinga hosts. I am currently using the following command: (note that I'm running this in an ansible playbook so {{item}} is the ...
0
votes
0answers
7 views

How to send a local image to Microsoft Computer Vision API?

I'm trying to use the following code to send an image from a local computer to Microsoft Computer Vision API, however I'm getting an error. My code is: { request.setHeader("Content-Type", "...
0
votes
1answer
25 views

Updating List of Entity Entries of DialogFlow Agent via API

Have been looking for a way to programmatically update our agent's entity entries for a certain entity type through the DialogFlow API. The purpose is to automate the updating of our entity entries on ...
0
votes
1answer
13 views

Integrating 3rd party API with jhipster based webapp

I am trying to build a simple web app using jHipster. Currently I am trying to build a simple stock entity that will enable a user to input the stock name and the entity should generate a listing of ...
0
votes
1answer
30 views

Java Compiler Completed but Didn't Create the Executable

I was trying to compile (javac -g Sphinx.java) this code: import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.io.PrintWriter; import edu.cmu.sphinx.api....
0
votes
0answers
11 views

Accessing a Folder that is not a wellknownfoldername nor inside of the Inbox

Using the exchange API, I am trying to access a folder within a folder within a folder. I am having trouble trying to access this folder since its root folder is not the inbox and I cannot use the ...