C# Класс BoxKite.Twitter.Authentication.TwitterAuthenticator

Показать файл Открыть проект

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

Метод Описание
Authentication ( this session, string _callbackuri ) : Task
ConfirmPin ( this session, string pinAuthorizationCode, string oAuthToken ) : Task
StartApplicationOnlyAuth ( this appsession ) : Task

Using client(consumer) id and key, start a 'readonly' Application-auth'd session

StartUserAuthentication ( this session ) : Task
StopApplicationOnlyAuth ( this appsession ) : Task

Using client(consumer) id and key, start a 'readonly' Application-auth'd session

ref: https://dev.twitter.com/docs/api/1.1/post/oauth2/invalidate_token

XAuthentication ( this session, string xauthusername, string xauthpassword ) : Task

XAuth for Twitter: Note: this hasn't been tested in production and is implemented from documentation only! Please contact @RealNickHodge if you need to debugged worked out!

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

Метод Описание
GenerateSignature ( this session, string signingKey, string baseString, string tokenSecret ) : string
OAuthUrlEncode ( string value ) : string
PostData ( string url, string authdata, string content = null ) : Task

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

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

public static Authentication ( this session, string _callbackuri ) : Task
session this
_callbackuri string
Результат Task

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

public static ConfirmPin ( this session, string pinAuthorizationCode, string oAuthToken ) : Task
session this
pinAuthorizationCode string
oAuthToken string
Результат Task

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

Using client(consumer) id and key, start a 'readonly' Application-auth'd session
public static StartApplicationOnlyAuth ( this appsession ) : Task
appsession this
Результат Task

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

public static StartUserAuthentication ( this session ) : Task
session this
Результат Task

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

Using client(consumer) id and key, start a 'readonly' Application-auth'd session
ref: https://dev.twitter.com/docs/api/1.1/post/oauth2/invalidate_token
public static StopApplicationOnlyAuth ( this appsession ) : Task
appsession this
Результат Task

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

XAuth for Twitter: Note: this hasn't been tested in production and is implemented from documentation only! Please contact @RealNickHodge if you need to debugged worked out!
public static XAuthentication ( this session, string xauthusername, string xauthpassword ) : Task
session this
xauthusername string
xauthpassword string
Результат Task