AddDefaultOAuthParams() 개인적인 정적인 메소드

private static AddDefaultOAuthParams ( string>.Dictionary parameters, string consumerKey, string consumerSecret ) : void
parameters string>.Dictionary
consumerKey string
consumerSecret string
리턴 void
예제 #1
0
 // Token: 0x06002F3D RID: 12093 RVA: 0x000E517F File Offset: 0x000E357F
 private static string GetHeaderWithAccessToken(string httpRequestType, string apiURL, string consumerKey, string consumerSecret, AccessTokenResponse response, Dictionary <string, string> parameters)
 {
     API.AddDefaultOAuthParams(parameters, consumerKey, consumerSecret);
     parameters.Add("oauth_token", response.Token);
     parameters.Add("oauth_token_secret", response.TokenSecret);
     return(API.GetFinalOAuthHeader(httpRequestType, apiURL, parameters));
 }
예제 #2
0
        // Token: 0x06002F3B RID: 12091 RVA: 0x000E50A0 File Offset: 0x000E34A0
        private static WWW WWWRequestToken(string consumerKey, string consumerSecret)
        {
            WWWForm wwwform = new WWWForm();

            wwwform.AddField("oauth_callback", "oob");
            Dictionary <string, string> dictionary = new Dictionary <string, string>();

            API.AddDefaultOAuthParams(dictionary, consumerKey, consumerSecret);
            dictionary.Add("oauth_callback", "oob");
            Dictionary <string, string> dictionary2 = new Dictionary <string, string>();

            dictionary2["Authorization"] = API.GetFinalOAuthHeader("POST", API.RequestTokenURL, dictionary);
            return(new WWW(API.RequestTokenURL, wwwform.data, dictionary2));
        }
예제 #3
0
        // Token: 0x06002F3C RID: 12092 RVA: 0x000E5114 File Offset: 0x000E3514
        private static WWW WWWAccessToken(string consumerKey, string consumerSecret, string requestToken, string pin)
        {
            byte[] postData = new byte[]
            {
                0
            };
            Dictionary <string, string> dictionary  = new Dictionary <string, string>();
            Dictionary <string, string> dictionary2 = new Dictionary <string, string>();

            API.AddDefaultOAuthParams(dictionary2, consumerKey, consumerSecret);
            dictionary2.Add("oauth_token", requestToken);
            dictionary2.Add("oauth_verifier", pin);
            dictionary["Authorization"] = API.GetFinalOAuthHeader("POST", API.AccessTokenURL, dictionary2);
            return(new WWW(API.AccessTokenURL, postData, dictionary));
        }