Skip to content

MuHamza30/uber-server-dotnet-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started with Uber API

Introduction

Move your app forward with the Uber API

Install the Package

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

Test the SDK

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.

Initialize the API Client

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();

Authorization

This API uses the following authentication schemes.

List of APIs

SDK Infrastructure

Configuration

HTTP

Utilities

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages