C# Класс FlickrNet.FlickrResponder

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetDataResponseAsync ( Flickr flickr, string hashCall, string baseUrl, string>.Dictionary parameters ) : Task>

Gets a data response for the given base url and parameters, either using OAuth or not depending on which parameters were passed in.

OAuthCalculateAuthHeader ( string>.Dictionary parameters ) : string

Returns the string for the Authorisation header to be used for OAuth authentication. Parameters other than OAuth ones are ignored.

OAuthCalculatePostData ( string>.Dictionary parameters ) : string

Calculates for form encoded POST data to be included in the body of an OAuth call.

This will include all non-OAuth parameters. The OAuth parameter will be included in the Authentication header.

Приватные методы

Метод Описание
DownloadDataAsync ( string method, string hashCall, string baseUrl, string data, string contentType, string authHeader ) : Task>
GetDataResponseNormalAsync ( Flickr flickr, string hashCall, string baseUrl, string>.Dictionary parameters ) : Task>
GetDataResponseOAuthAsync ( Flickr flickr, string hashCall, string baseUrl, string>.Dictionary parameters ) : Task>

Описание методов

GetDataResponseAsync() публичный статический Метод

Gets a data response for the given base url and parameters, either using OAuth or not depending on which parameters were passed in.
public static GetDataResponseAsync ( Flickr flickr, string hashCall, string baseUrl, string>.Dictionary parameters ) : Task>
flickr Flickr The current instance of the class.
hashCall string
baseUrl string The base url to be called.
parameters string>.Dictionary A dictionary of parameters.
Результат Task>

OAuthCalculateAuthHeader() публичный статический Метод

Returns the string for the Authorisation header to be used for OAuth authentication. Parameters other than OAuth ones are ignored.
public static OAuthCalculateAuthHeader ( string>.Dictionary parameters ) : string
parameters string>.Dictionary OAuth and other parameters.
Результат string

OAuthCalculatePostData() публичный статический Метод

Calculates for form encoded POST data to be included in the body of an OAuth call.
This will include all non-OAuth parameters. The OAuth parameter will be included in the Authentication header.
public static OAuthCalculatePostData ( string>.Dictionary parameters ) : string
parameters string>.Dictionary
Результат string