Tag used for questions about APIs used in client-side applications.
Questions tagged [apiclient]
59 questions
1
vote
1 answer
how to debug and test retry logic of API client in Python
I've just developed the primitive API client for Instagram based on "requests" library. The next goal is to implement retry logic for 400+ and 500+ error codes. There is a bunch of examples how to do this, but I'm wondering how to test the…

Ignat
- 88
- 6
1
vote
2 answers
FTX.com REST API POST Authentication FAILS with Ruby on Rails and net/https
Hoping for some help as this one has me baffled...
I created a user account and API credentials at FTX.com.
They have an interesting Auth setup which is detailed here: https://docs.ftx.com/?python#authentication
They only provide code examples for…

joergenhorse
- 11
- 2
1
vote
1 answer
How to change "APIClient" name
I am trying to generate classes automatically from swagger-codegen-maven-plugin (version 3.0.8) and (group Id: io.swagger.codegen.v3) like below. Code generation works great however I want to change name of Generated ApiClient to something like…

Ketan
- 2,612
- 5
- 31
- 44
1
vote
1 answer
Strange CSOB Payment Gw response {"resultCode":900,"resultMessage":"Internal error"}
The payment POST request to…

Cybervitexus
- 291
- 4
- 19
1
vote
1 answer
Unit testing a PHP API client
I am writing an API client in php that sends request to an API server to get the details of a person based on his ID on the API server. The API server has a token based authentication and when queried with the correct ID and the token, the details…

Praveesh
- 1,257
- 1
- 10
- 23
1
vote
1 answer
Custom API Client organization
I have a custom API Client calling a custom API Service with many controllers. I actually have this class:
public abstract class APIClientBase
{
protected HttpClient _httpClient;
public APIClientBase()
{
_httpClient = new…

Mr-RandomQC
- 57
- 11
1
vote
0 answers
Write Data into Google Sheet with Python googleapiclient
I'm new to googleapiclient. Now, I came up with the code to get the data from GSheet to S3 with credentials.json and token.pickle.
scope = ['https://www.googleapis.com/auth/spreadsheets.readonly']
credentials = get_google_token(scope=scope,…

Parvathirajan Natarajan
- 1,240
- 15
- 29
1
vote
1 answer
How to nest endpoints in a API client with interfaces while keeping readability
I'm trying to compose a simple API client I'm stuck trying to figure out how to make it readable and testable. How can I compose a nested structure while keeping it testable?
Psuedo code:
type VehicleEndpoint struct {
Car CarEndpoint
…

Adrian Forsius
- 1,437
- 2
- 19
- 29
1
vote
1 answer
No Adapter Attached; Skipping Layout when using retrofit
This is how I'm setting up my Recycler view in my Search Fragment. I don't understand why I keep getting the same error and what I'm missing.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)…

dev_weeb
- 125
- 1
- 11
1
vote
0 answers
Fitbit Authorization page - How to disabled checkboxes?
I am working on a web application that integrates with Fitbit. I have a question on the Authoriztion page in Authorization Code Grant Flow: Is it possible to prevent the user from unchecking the checkboxes, e.g.: disable the checkboxes? Please see…

Duong
- 11
- 3
1
vote
1 answer
How to use libcloud library in python
I am trying to to list images in CloudStack, using libcloud api in Python:
from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver
from libcloud.common.base import Response
#import libcloud.security as sec…

user4223185
- 55
- 6
1
vote
1 answer
HMAC value calculated from Java is not matching with Ruby code
I have to write client provided Ruby code in Java. The code uses secret key and Base64 encoding to form hmac value. I tried to write similar code in Java but the resulted hmac value is not matching with the Ruby script result. Please find the below…

Rubyist
- 6,486
- 10
- 51
- 86
0
votes
0 answers
Error in using Fast Android Networking API in project
I have been working on a project and using the fast android networking api. I have added the below dependency - ( implementation 'com.amitshekhar.android:android-networking:1.0.2') in the gradle module file and also added the internet permission in…
0
votes
0 answers
How can I mock dataTaskPublisher method from URLSession in Swift Combine?
I wan't to write a unit tests for my APIClient. This is the method I would like to test:
typealias ResponsePublisher = AnyPublisher
func dispatch(request: URLRequest) -> ResponsePublisher {
…

MattCodes
- 489
- 8
- 21
0
votes
0 answers
Does the VersionOne.SDK.APIClient work in .NET Core or .NET Standard projects? (by Digital.ai Software, Inc.)
Nuget package support says net471 supported however,
Did the VersionOne.SDK.APIClient work with .NET Core or .NET Standard for anyone actively testing/porting this SDK to .NET Core?
Reference to the SDK can be found here:…

Coding Cowboy
- 1
- 3