OAuthTwitter class
A Calculator.
Constructors
- OAuthTwitter(String _apiKey, String _apiSecret, String _callBackUrl)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
encode2URL(
dynamic text) → String - RFC3986準拠で、URL形式にエンコードする
-
getOneOAuthData(
dynamic userId) → Future< OAuthData?> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
oauthAccessToken(
String? tokenByAuthe, String? verifierByAuthe, String? secretByRequest) → Future< HttpClientResponse?> - Twitterにアクセストークンを要求する 既に、tokenByAuthe(authentication)/verifierByAuthe/secretByRequestを取得済みでないとこの関数は通せない
-
oauthAuthentication(
String responseBodyFromTokenRequest) → void - OAuthの認証リクエストを行う(ブラウザで、Twitterが用意してくれる認証ページを開く それが終わると、Token取得時に指定したCALLBACK URLが呼び出されるので、 そのCALLBACK URLでDeep Linkによりこのアプリが呼ばれるようにして、続きの処理を行う
-
oauthRequestToken(
) → Future< HttpClientResponse> - Twitterにリクエストトークンを要求する
-
saveAccessTokenResponse(
String responseBodyAccessToken) → Future< String?> - AccessTokenで受信したレスポンスボディの内容を、UserIDをキーとしてデータベースに保存 もしも、ResponseBodyにuser_idが含まれていなければ、false:エラーを返却するので注意する
-
saveAuthenticationResponse(
String responseBodyAuthe) → Future< void> - RequestTokenで受信したレスポンスボディの内容を、一時データベースに保存
-
saveRequestTokenResponse(
String responseBodyToken) → void - RequestTokenで受信したレスポンスボディの内容を、一時データベースに保存
-
toString(
) → String -
A string representation of this object.
inherited
-
urlParametersToDict(
String params) → Map< String, String> - keyA=valA&keyB=valB...の形式の文字列を辞書型に格納して返却する
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited