C# Класс OAuth2.Client.Impl.YahooClient

Yahoo client Right now only Yahoo Gemini and Yahoo Social support OAuth2 https://developer.yahoo.com/oauth2/guide/
Наследование: OAuth2Client
Показать файл Открыть проект

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

Метод Описание
YahooClient ( IRequestFactory factory, IClientConfiguration configuration ) : System

Initializes a new instance of the YahooClient class.

Защищенные методы

Метод Описание
AfterGetAccessToken ( BeforeAfterRequestArgs args ) : void

It's required to store the User GUID obtained in the response for further usage https://developer.yahoo.com/oauth2/guide/flows_authcode/

BeforeGetUserInfo ( BeforeAfterRequestArgs args ) : void

Called just before issuing request to third-party service when everything is ready. Allows to add extra parameters to request or do any other needed preparations. We have to reformat the Url adding the user guid for accessing their information https://developer.yahoo.com/oauth2/guide/apirequests/

ParseUserInfo ( string content ) : OAuth2.Models.UserInfo

Should return parsed UserInfo from content received from third-party service.

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

AfterGetAccessToken() защищенный Метод

It's required to store the User GUID obtained in the response for further usage https://developer.yahoo.com/oauth2/guide/flows_authcode/
protected AfterGetAccessToken ( BeforeAfterRequestArgs args ) : void
args BeforeAfterRequestArgs
Результат void

BeforeGetUserInfo() защищенный Метод

Called just before issuing request to third-party service when everything is ready. Allows to add extra parameters to request or do any other needed preparations. We have to reformat the Url adding the user guid for accessing their information https://developer.yahoo.com/oauth2/guide/apirequests/
protected BeforeGetUserInfo ( BeforeAfterRequestArgs args ) : void
args BeforeAfterRequestArgs
Результат void

ParseUserInfo() защищенный Метод

Should return parsed UserInfo from content received from third-party service.
protected ParseUserInfo ( string content ) : OAuth2.Models.UserInfo
content string The content which is received from third-party service.
Результат OAuth2.Models.UserInfo

YahooClient() публичный Метод

Initializes a new instance of the YahooClient class.
public YahooClient ( IRequestFactory factory, IClientConfiguration configuration ) : System
factory IRequestFactory The factory.
configuration IClientConfiguration The configuration.
Результат System