Class OAuth1UriActions
Due to the complexity of the Oauth requests, these extensions are supplied. For Oauth 2.0 there is no need to have special extensions
Inheritance
System.Object
OAuth1UriActions
Namespace:Dapplo.HttpExtensions.OAuth
Assembly:Dapplo.HttpExtensions.dll
Syntax
public class OAuth1UriActions
Methods
| Improve this Doc View SourceOAuth1GetAsAsync<TResponse>(Uri, CancellationToken)
Make an OAuth GET, returns the response as the specified type
Declaration
public static Task<TResponse> OAuth1GetAsAsync<TResponse>(Uri uri, CancellationToken cancellationToken = null)where TResponse : class
Parameters
Type | Name | Description |
---|---|---|
System.Uri | uri | An Uri to specify the download location |
System.Threading.CancellationToken | cancellationToken | CancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResponse> | TResponse |
OAuth1GetAsAsync<TResponse, T>(Uri, IDictionary<String, T>, CancellationToken)
Make an OAuth GET, returns the response as the specified type
Declaration
public static Task<TResponse> OAuth1GetAsAsync<TResponse, T>(Uri uri, IDictionary<string, T> properties, CancellationToken cancellationToken = null)where TResponse : class
Parameters
Type | Name | Description |
---|---|---|
System.Uri | uri | An Uri to specify the download location |
System.Collections.Generic.IDictionary<System.String, T> | properties | Properties for the OAuth request |
System.Threading.CancellationToken | cancellationToken | CancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResponse> | TResponse |
OAuth1PostAsync<TResponse>(Uri, IDictionary<String, Object>, CancellationToken)
Make an OAuth POST, returns the response as the specified type
Declaration
public static Task<TResponse> OAuth1PostAsync<TResponse>(Uri uri, IDictionary<string, object> properties = null, CancellationToken cancellationToken = null)where TResponse : class
Parameters
Type | Name | Description |
---|---|---|
System.Uri | uri | Uri to post to |
System.Collections.Generic.IDictionary<System.String, System.Object> | properties | properties to post |
System.Threading.CancellationToken | cancellationToken | CancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResponse> | TResponse |
OAuth1PostAsync<TResponse>(Uri, Object, IDictionary<String, Object>, CancellationToken)
Make an OAuth POST, returns the response as the specified type
Declaration
public static Task<TResponse> OAuth1PostAsync<TResponse>(Uri uri, object content, IDictionary<string, object> properties = null, CancellationToken cancellationToken = null)where TResponse : class
Parameters
Type | Name | Description |
---|---|---|
System.Uri | uri | Uri to post to |
System.Object | content | Content to post |
System.Collections.Generic.IDictionary<System.String, System.Object> | properties | properties to post |
System.Threading.CancellationToken | cancellationToken | CancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResponse> | TResponse |