Tag used for questions about APIs used in client-side applications.
Questions tagged [apiclient]
59 questions
0
votes
0 answers
Parameter 0 of constructor in Api required a single bean, but 2 were found in target class
I'm having this problem when I deploy the app in dev, the app runs locally, so I'm really confused:
The error says:
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of constructor in…
0
votes
1 answer
How to pass credentials for ApiClient generated by openapi-maven-generator-plugin?
I am using openapi-generator-maven-plugin to generate an api client from an existing yaml specification file in a Java and SpringBoot project .
The API endpoint are protected by Basic HTTP Security scheme (username and password) this way…

Ghassen
- 591
- 1
- 15
- 33
0
votes
0 answers
client.post is not passing the FK
Hope someone can help me out here, I am trying to test a post method on an API, but the post method is not working as expected.
When I pass the payload to the post method, the points and de code fields are loaded but the shopper and card fields,…

Victor Torres
- 61
- 4
0
votes
2 answers
Create TermsQuery with List using elasticsearch java api client
I have an elastic search query as below.
{
"query":{
"bool":{
"filter":{
"bool":{
"must_not":{
"terms":{
"names":[
"john",
…

Anamika
- 75
- 1
- 8
0
votes
1 answer
Replacement for SearchTemplateRequest class in java api client
I am migrating a java application from elastic search high level client to java api client. There is a SearchTemplateRequest class in elastic search java high level client. But I couldn't find any corresponding class in java api client. Can someone…

Chetna Joshi
- 1
- 2
0
votes
2 answers
Error when trying to send data from APIClient to a function using multiprocessing
Betfairlightweight API: https://github.com/betcode-org/betfair
To work with this module, it is necessary to pass the APIClient data and login:
trading = betfairlightweight.APIClient(username, pw, app_key=app_key,…

Digital Farmer
- 1,705
- 5
- 17
- 67
0
votes
1 answer
Django multipart/form-data pass Dict & File
I want to create a post requests that sends a file along with information in the form of a dictionary. I have the following implementation:
# conftest.py
import pytest
@pytest.fixture
def api_client():
from rest_framework.test import…

Andrew Zacharakis
- 351
- 1
- 6
- 19
0
votes
1 answer
Can we send a notification to phones enrolled on the Android Management API solution (google)
I have enrolled a phone via google solutions (Android Management API: https://developers.google.com/android/management/reference/rest/v1/enterprises.policies). This one is correctly enrolled and all works correctly.
My question is very simple: Can…

Adrien DEBLOCK
- 53
- 5
0
votes
1 answer
Using custom client code around auto-generated client bindings
(Please let me know if this question belongs to a different stackexchage site)
I have a use case where the clients of my service have to call some APIs exposed in the service. The API specification model being used allows for auto-generation of…

Vikdor
- 23,934
- 10
- 61
- 84
0
votes
1 answer
How to timeout, or limit the waiting time for a response from an external API
I have come across this problem generally and never really resolved it, but this morning I have a specific case.
My applications integrates with the Despatch Bay Shipping API:
https://github.com/despatchbay/despatchbay-api-v15/wiki
I won't bother…

Jamie Hartnoll
- 7,231
- 13
- 58
- 97
0
votes
2 answers
Invalid Date format in Post request using swagger code gen (open api)
Hi I am using swagger code gen (v3) to generate the service client in my Spring Boot project using the following configuration in my pom.xml
java
specs.yaml
…

aeroboy
- 149
- 4
- 14
0
votes
0 answers
GET Request with proxy c#
I am currently using a APIClient to send GET Requests:
public async Task Stock()
{
var apiClient = new APIClient();
Task getResponseTask = apiClient.GetAsync("website");
string json = await…

HelloKiddy987
- 53
- 6
0
votes
0 answers
Unable to infer closure type in the current context in APIClient
I'm trying to migrate code from Swift 3.2 to Swift 4.2. When put in Xcode 10.1 I get this error.'Unable to infer closure type in the current context '. This is using YALAPIClient. Please help.
Unable to infer closure type in the current context…

Akshay Crasta
- 1
- 2
0
votes
1 answer
whatsapp business api is only used pre-selected company from whatsapp?
I guess whatsapp business api client is only used pre-selected company which whatsapp grant.
So, i want to know my guessing is right or not.
According to official guide, i need to register phone number to whatsapp.
I guess here exist whatsapp menu.…

Jeongkuk Seo
- 127
- 2
- 15
0
votes
0 answers
Convert string into a variable to be used in a generic call
I would like to create a generic call using api-client.
I want simplify my functions:
client.hello(params).then(
(response) => {
console.log(response)
},
(error) => {
console.log(error)
…

sarnei
- 267
- 1
- 4
- 11