java-ovh icon indicating copy to clipboard operation
java-ovh copied to clipboard

get call with parameters doesn't work and returns 400 bad parameters

Open aragoubi opened this issue 5 years ago • 1 comments

I am trying to use a GET endpoint with parameters. this is the endpoint:

GET /telephony/{billingAccount}/line/{serviceName}/statistics

Parameters: timeframe: string;
type : string

This is how I am doing the call:

api.get("/telephony/{myBuildingAccount}/line/{myServiceNumber}/statistics", "timeframe=daily&type=maxDelay", true);

But I am getting an error 400 bad parameters.

aragoubi avatar May 16 '19 15:05 aragoubi