Questions tagged [api]
DO NOT USE. Use specific tags like [google-cloud-platform], [facebook], [amazon-web-services] instead or [api-design] where applicable. Questions asking to recommend or find an API are off-topic.
100,081
questions
0
votes
0
answers
4
views
How to Send OTP to Multiple SMS Api?
I have a php script which allows me to send OTPs to an SMS Api; but sometimes the sms gets delayed or not delivered so I was thinking of adding another Api to the code so now the OTP is sent to ...
0
votes
0
answers
5
views
Request headers is not going along with request in retrofit 2.6.0 android kotlin
I am trying to call an API through our app with an authorization token. I have tried all available solutions with no luck.
Here is my retrofit client with okhttp
companion object {
var token: ...
0
votes
0
answers
7
views
How to set callback URL in .NET API?
I'm trying to make an option to reset the password through MailJet.
where the forgot_password method will send a URL with a PasswordResetToken to the mail.
I have tried for MVC app using this way.
var ...
0
votes
1
answer
15
views
How to use Twitter API to tweet to a specific audience. (ie. their new community feature)
We use the Twitter API to post to our Twitter feed. Under the audience selection there is the option to choose "Everyone" or to choose a different audience, including "communities" ...
0
votes
1
answer
15
views
Laravel 8 api $request is really strange
I am sending This request form vue component:
data(){
return{
email:"s@me.com"
}
},
methods:{
reset(){
console.log(this.email)
return axios.post(API_URL + '/auth/...
0
votes
0
answers
9
views
How to pass an image through along with text content in a javascript-created div?
I have this code that should pull up a league name along with its logo:
league.innerHTML = filtered[i][x].league.name + `<img src=${filtered[i][x].league.logo}/>`
the issue is that I get an ...
0
votes
0
answers
16
views
Designing an API for a Forum
So I am trying to figure out how to design my backend for a forum website I am building (similar to reddit) and I just want to be sure I am doing things right.
The home page will have a list of ...
0
votes
1
answer
8
views
How can I download an Email using the Gmail api with Go
Trying to use the Go library of the Gmail API (v1) to get the raw content of a email and parse it as a byte slice {[]byte} so I can save it as an email. Any tips?
0
votes
1
answer
4
views
Upload DocuWare File Using Byte Array
How do you upload a file to DocuWare, via the .NET API, using a byte array? Currently it appears that you can only use a FileInfo object which requires the file to be on disk. https://developer....
0
votes
0
answers
4
views
VSCode API - How do I get a `textDocument` using a `uri` from the parameter of `onDidChangeWatchedFiles`?
onDidChangeWatchedFiles from the VSCode API has a parameter that gives me access to the uri of the document that changed.
How do I use that uri to get that textDocument in the current workspace? I ...
-2
votes
0
answers
13
views
Free API to convert .heic images to .jpg format [closed]
I am looking for an API which I can integrate in my Java project to convert .heic images to .jpg images. Let me know if any API which can be integrated to a Maven based project.
-1
votes
0
answers
15
views
Angular api call questions [closed]
In a grid table in angular how to do add and delete button method to pass into a api call action , it can fetch the add data . and delete data ,
0
votes
1
answer
13
views
Whatsapp API (#132000) Number of parameters does not match the expected number of params
I created below template in Whatsapp API. And I want to set the parameter value in the API call. What is the correct payload ? I have been following the Meta docs and trying but everytime I get error. ...
-3
votes
0
answers
12
views
How can I get order history using Binance Api in Swift [closed]
I want to get all order history in spot account using Binance Api but I couldn't find solution. Does anyone know of a way to do this?
-3
votes
0
answers
17
views
Calculate complex equations from string [closed]
Is there a good API for solving complex math equations from a string like sqrt((5-3) * 2) for example? I've created a small test program that can handle stuff like -6*3 but this was already pretty ...
0
votes
0
answers
7
views
Automation - Soap API fails on the second run using RestSharp c#
So I am automating a Soap API test which works perfect the first time when I run it, however after it passed and i receive the xml response and attempt to run it for the second time it fails. I tried ...
0
votes
0
answers
20
views
Delay fetching of api's stored in an array
I have 13 api's that are stored in an array and I get "api calls rate limit reached", so I must delay each call for 1s to avoid the limit. The problem is that I don't know how to use the ...
0
votes
0
answers
8
views
I try To authenticate t twitter api v2 using requests headers and bearer_token, and it return me this error
Exception: (403, '{"client_id":"*****","detail":"When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer ...
0
votes
0
answers
25
views
How to loop through and reference with an array in an array?
I have this array and it has an array with different number of elements.
var filtered = [Array(3), Array(1), Array(2), Array(7), Array(1), Array(1), Array(5)]
0: Array(3)
0: {fixture: {…}, league:...
0
votes
0
answers
5
views
IBAPI runs only once, have to restart the kernel for it to run again
im having an issue where I can run this code successfully once, but then when i want to run it again i have to completely restart the kernel for it to work again. can someone help?
the error i get at ...
0
votes
0
answers
8
views
Microsoft Graph API shares / drives filter deleted files
I am using the Graph API to get Files from Sharepoint.
Somehow I get deleted files in the response without any flag where i can filter.
I mean, i do not want to see files that are in the Recycle bin.
...
-2
votes
0
answers
8
views
save the image from Flash Server temporarily in pakedFile type
Image.network("http://10.0.2.2:5000/${image1.toString()}")
I want to save the image from Flash Server temporarily in pakedFile type to use it with an image input model Example code:
Late ...
-1
votes
0
answers
19
views
How to make a search bar to search for a place with the rain percentage?
I am making a website where people can see the rain percentage. But you can only see one specific location. Is there a way the make a textarea where people can search for a place to see the rain ...
0
votes
0
answers
4
views
Dockerhub API. How to escape '/' in curl command
I am trying to retrieve information about images on Dockerhub. For that I am using this curl command:
curl -X GET https://hub.docker.com/v2/repositories/library/<image-name>/tags/<image-tag&...
0
votes
1
answer
29
views
.map() removes duplicates but I want to keep duplicates?
I have this large array of API data that I filter down to a smaller amount. The issue is that the current system I made uses .map() to set an order preference for that data but it removes any ...
0
votes
0
answers
8
views
Why do I get timeout error doing an api call using python with requests library if with curl works well?
I trying to make a simple call to an api. With this instruction of curl in the terminal works fine, I get the json file back
curl -X GET "https://my.domain.com/api/product/?name=product" \
...
0
votes
1
answer
12
views
Getting a strange rabbitmq error when I start my springboot server
I am trying to create a springboot endpoint that consumes a message from a queue, this is my code:
@PostMapping("test")
@RabbitListener(queues = "test-queue")
public String test(@...
0
votes
0
answers
8
views
Http PUT request to a 3rd party API gives Stream is already consumed error
My code is making a simple PUT http request to 3rd party API.
But there an intermittent issue I am facing
Error says - The stream was already consumed. It cannot be read again.
Following is the stack ...
0
votes
0
answers
11
views
Http-Delete Request in Java (Android Studio)
I'm currently working on an App for school. I'm programming an app where you can create items and give them title and stuff. I'm using a backend which i programmed on my own, and so far i'm able to ...
0
votes
0
answers
10
views
rets api, Search function giving DMQL: Invalid Lookup criteria for field 'Change_Type'
I am working on RETS API https://github.com/troydavisson/PHRETS
I am trying to search some parameters but getting error.
$search = $rets->Search("HISTORY", $class, "Change_Type=*&...
0
votes
1
answer
15
views
how to flutter getx make a 13 different controller with search function
class IlacProductController extends GetxController {
final IlacProductRepo ilacProductRepo;
IlacProductController({required this.ilacProductRepo});
List<dynamic> _ilacproductList = [];
...
0
votes
0
answers
14
views
How do I get response from Chrome Postman Extension through java rest assured framework?
How do I get response from Chrome Postman Extension through java rest assured framework.
Using my code I am got the following output:
Request method: POST
Request URI: https://aff.lycafly.com/...
0
votes
0
answers
31
views
Send message with cloud api and google app script
Meta recently released the cloud api to send messages from Whatsapp business, but I can't send it from the google app script.
I have this code, it runs fine... but it doesn't reach the user
...
0
votes
0
answers
4
views
Create a customer and his password using WooCommerce API (Post Method)
We would like to create a customer and his password using WooCommerce API. We can only create a customer using this Post method ( https://woocommerce.github.io/woocommerce-rest-api-docs/#create-a-...
0
votes
2
answers
8
views
Uncaught TypeError: Cannot read properties of undefined (reading 'map') Errors
I get this error whenever I try to fetch data, I don't know why, it should show me posts but it gives me an error and a white page!
This the error I get
This the Posts.jsx code
import Post from "...
1
vote
0
answers
12
views
40301: Wrong integration type for this API. message seen during API testing in DUO
I used the following API in postman with integration key, client secret from the Admin API application but no luck.
GET: https://api-123abc.duosecurity.com/auth/v2/check
Furthermore,
I used basic ...
0
votes
0
answers
7
views
How to return List ASP.NET WEB API using Stored Procedure?
I am first learning how to develop Web API services in ASP.NET using Entity Data Model and code. I do not know how to retrieve data by executing the stored procedure. I set up a test exercise to ...
0
votes
1
answer
19
views
sharing GCP image using api
I have been trying to share my GCP image with other accounts using API... on the UI I can do it in permissions and by adding members...
I used the following URL with the post request:
POST https://...
0
votes
0
answers
11
views
Inserting Custom Dimensions using Google Analytics API v3
I am using Google Analytics API to insert a custom dimension. I have set up the required Oauth2 credentials and obtained an access token and a refresh token. However, when I called my function that ...
0
votes
1
answer
29
views
Protect guest user in api calls | Laravel
Good morning. I have the following problem. In building an ecommerce with Laravel and Vue js., I want to protect the API call of the products also for the guest users. In the sense, the route "...
0
votes
0
answers
4
views
How to get cloudflare video id using API?
Guys.
I am going to upload video stream using cloudflare API.
In postman, it success upload video file, but in postman, curl command succeeds, but why not change curl to php?
Upload with X-auth-key ...
0
votes
1
answer
25
views
Is there a way to implement this SQL query from flask_sqlalchemy?
I was following a tutorial for API development. The tutor was using fast API and I was using Flask. Now, I am unable to convert this SQL query in SQLAlchemy.
I want to convert SQL query in SQL Alchemy....
0
votes
0
answers
3
views
Getting an error on fetching access token for facebook
I am extracting the authorization code from the URL http://localhost:/api/auth/socialRedirectLoginUrl/facebook?code=AQ[...]cmLRa5iox2HVl4VKd6sacvW7VmjygY4ydF8eGpuNjXzBnxRXTBYi29EhSPyBEUf3-...
0
votes
1
answer
35
views
I'm fetching a problem when I'm trying to fetch data from an API by using useEffect in react
const [users, setUsers] = useState([]);
const getUsers = async () => {
const URL = "https://jsonplaceholder.typicode.com/users";
const response = await fetch(URL);
const data =...
1
vote
0
answers
17
views
how to use third-party api in wordpress?
I have an API and I need to call this API on o to submit button click of a form. how to do this on a WordPress website. can anyone explain to me the complete process is this possible to do? step by ...
0
votes
0
answers
23
views
Not Getting Value property of HttpResponseMessage in variable
I am calling an API endpoint which returns an HttpResponseMessage object with custom error message
Request.CreateResponse(HttpStatusCode.Forbidden, new { Message = "Custom Error Message" });
...
0
votes
1
answer
27
views
"Validation failed for one or more entities. ERROR
I am creating web API to save the uploaded file in my local storage. When I testing my code it gives an error as ExceptionMessage": "Validation failed for one or more entities. See ...
0
votes
0
answers
11
views
Ascora Enquiry API Returning "No Content" when utilising wp_remote_post
I am trying to submit enquiries into Ascora using their Enquiry API.
I have created a WordPress plugin and I am trying to send the payload using wp_remote_post.
If any of you kind folk can spot my ...
0
votes
0
answers
7
views
Can Woocommerce be integrated with any POS?
I need to integrate a POS to woocommerce using API, so that my orders in POS will be reflected in website also and vice versa. Is there any option?
-2
votes
0
answers
13
views
Attempting to work with a java library and getting an error caused by "API error (statusCode: 404): null - API doesn't exists"
Attempting to go through the test analysis of the Botometer java library but it says that the error is caused by the API not existing? I'm confused on how to proceed from here.
Error Message
package ...