Move your app forward with the Uber API
If you are building with .NET CLI tools then you can also use the following command:
dotnet add package UberserverSDK --version 1.0.0
You can also view the package at: https://www.nuget.org/packages/UberserverSDK/1.0.0
The generated SDK also contain one or more Tests, which are contained in the Tests project. In order to invoke these test cases, you will need NUnit 3.0 Test Adapter Extension
for Visual Studio. Once the SDK is complied, the test cases should appear in the Test Explorer window. Here, you can click Run All
to execute these test cases.
Note: Documentation for the client can be found here.
The following parameters are configurable for the API Client:
Parameter | Type | Description |
---|---|---|
Timeout | TimeSpan |
Http client timeout. Default: TimeSpan.FromSeconds(100) |
HttpClientConfiguration | Action<HttpClientConfiguration.Builder> |
Action delegate that configures the HTTP client by using the HttpClientConfiguration.Builder for customizing API call settings. Default: new HttpClient() |
CustomQueryAuthenticationCredentials | CustomQueryAuthenticationCredentials |
The Credentials Setter for Custom Query Parameter |
The API client can be initialized as follows:
using UberAPI.Standard;
using UberAPI.Standard.Authentication;
UberAPIClient client = new UberAPIClient.Builder()
.CustomQueryAuthenticationCredentials(
new CustomQueryAuthenticationModel.Builder(
"server_token"
)
.Build())
.Build();
This API uses the following authentication schemes.