Interface IApiConfiguration
Represents a configuration contract.
Namespace: Unity.Services.Apis
Assembly: Unity.Services.Apis.dll
Syntax
public interface IApiConfiguration
Properties
AccessToken
Gets the access token.
Declaration
string AccessToken { get; set; }
Property Value
Type | Description |
---|---|
string | Access token. |
ApiKey
Gets the API key.
Declaration
IDictionary<string, string> ApiKey { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> | API key. |
ApiKeyPrefix
Gets the API key prefix.
Declaration
IDictionary<string, string> ApiKeyPrefix { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> | API key prefix. |
BasePath
Gets the base path.
Declaration
string BasePath { get; set; }
Property Value
Type | Description |
---|---|
string | Base path. |
DateTimeFormat
Gets the date time format.
Declaration
string DateTimeFormat { get; set; }
Property Value
Type | Description |
---|---|
string | Date time format. |
DefaultHeaders
Gets the default headers.
Declaration
IDictionary<string, string> DefaultHeaders { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> | Default headers. |
Password
Gets the password.
Declaration
string Password { get; set; }
Property Value
Type | Description |
---|---|
string | Password. |
Timeout
Gets the HTTP connection timeout in seconds
Declaration
int Timeout { get; set; }
Property Value
Type | Description |
---|---|
int | HTTP connection timeout. |
UserAgent
Gets the user agent.
Declaration
string UserAgent { get; set; }
Property Value
Type | Description |
---|---|
string | User agent. |
Username
Gets the username.
Declaration
string Username { get; set; }
Property Value
Type | Description |
---|---|
string | Username. |
Methods
GetApiKeyWithPrefix(string)
Gets the API key with prefix.
Declaration
string GetApiKeyWithPrefix(string apiKeyIdentifier)
Parameters
Type | Name | Description |
---|---|---|
string | apiKeyIdentifier | API key identifier (authentication scheme). |
Returns
Type | Description |
---|---|
string | API key with prefix. |