Beispiel #1
0
 /// <summary>
 /// OAuth 認証実行 (static メソッド)
 /// </summary>
 /// <param name="service">開発用Sadboxかリリース用かのフラグ</param>
 /// <param name="consumerKey">Consumer Key</param>
 /// <param name="consumerSecret">Consumer Secret</param>
 /// <param name="parentForm">認証 Web 画面の親フォーム</param>
 /// <returns>認証結果オブジェクト</returns>
 public static EvernoteOA Auth(HostService service,
                               string consumerKey,
                               string consumerSecret)
 {
     return(EvernoteOA.Auth(service,
                            consumerKey, consumerSecret,
                            null));
 }
Beispiel #2
0
        /// <summary>
        /// OAuth 認証実行 (static メソッド)
        /// </summary>
        /// <param name="service">開発用Sadboxかリリース用かのフラグ</param>
        /// <param name="consumerKey">Consumer Key</param>
        /// <param name="consumerSecret">Consumer Secret</param>
        /// <param name="parentForm">認証 Web 画面の親フォーム</param>
        /// <returns>認証結果オブジェクト</returns>
        public static EvernoteOA Auth(HostService service,
                                      string consumerKey,
                                      string consumerSecret,
                                      Form parentForm)
        {
            EvernoteOA auth = new EvernoteOA(service);

            auth.doAuth(consumerKey, consumerSecret, parentForm);
            return(auth);
        }