Class ApiKeyService
Class representing a set of API key-related functionality.
Inherited Members
Namespace: EasyPost.Services
Assembly: EasyPost.dll
Syntax
public class ApiKeyService : EasyPostService, IEasyPostService
  Methods
| Improve this Doc View SourceAll(CancellationToken)
Get a list of all ApiKeys. Related API documentation.
Declaration
public async Task<ApiKeyCollection> All(CancellationToken cancellationToken = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| CancellationToken | cancellationToken | 
Returns
| Type | Description | 
|---|---|
| Task<ApiKeyCollection> | A ApiKeyCollection object.  | 
      
RetrieveApiKeysForUser(String, CancellationToken)
Declaration
public async Task<List<ApiKey>?> RetrieveApiKeysForUser(string id, CancellationToken cancellationToken = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | id | The ID of the User to retrieve keys for.  | 
      
| CancellationToken | cancellationToken | 
Returns
| Type | Description | 
|---|---|
| Task<System.Nullable<List<ApiKey>>> | 
Exceptions
| Type | Condition | 
|---|---|
| FilteringError | Thrown if the specified User does not exist.  | 
      
Implements
      IDisposable