コード例 #1
0
 public void StartupAfterAuthorization(GowallaOAuthorizer OAuth)
 {
     Console.WriteLine(OAuth.AccessToken + " " + OAuth.AccessCode + " " + OAuth.RefreshToken);
     GowallaAPI api = new GowallaAPI(OAuth);
     Console.WriteLine(api.getPassportByUsername("martinbowling"));
     Console.WriteLine(api.getStampsForUsername("martinbowling"));
 }
コード例 #2
0
            public GowallaAuthorizationViewController(GowallaOAuthorizer oauth, string url, NSAction callback)
            {
                this.url       = url;
                this.container = oauth;
                this.callback  = callback;

                SetupWeb(url);
            }
コード例 #3
0
        public void StartupAfterAuthorization(GowallaOAuthorizer OAuth)
        {
            Console.WriteLine(OAuth.AccessToken + " " + OAuth.AccessCode + " " + OAuth.RefreshToken);
            GowallaAPI api = new GowallaAPI(OAuth);

            Console.WriteLine(api.getPassportByUsername("martinbowling"));
            Console.WriteLine(api.getStampsForUsername("martinbowling"));
        }
コード例 #4
0
        public void StartLogin()
        {
            ThreadPool.QueueUserWorkItem(delegate {
                var oauth = new GowallaOAuthorizer();

                try {
                    BeginInvokeOnMainThread(delegate {
                        oauth.AuthorizeUser(dvc, delegate {
                            StartupAfterAuthorization(oauth);
                        });
                    });
                    return;
                } catch (Exception e) {
                    Console.WriteLine(e);
                }

                BeginInvokeOnMainThread(delegate { Console.WriteLine("FE"); });
            });
        }
コード例 #5
0
        public void StartLogin()
        {
            ThreadPool.QueueUserWorkItem (delegate {
                var oauth = new GowallaOAuthorizer();

                try {

                        BeginInvokeOnMainThread (delegate {
                            oauth.AuthorizeUser (dvc, delegate {
                                StartupAfterAuthorization (oauth);
                            });
                        });
                        return;

                } catch (Exception e){
                    Console.WriteLine (e);
                }

                BeginInvokeOnMainThread (delegate { Console.WriteLine("FE"); });
            });
        }
コード例 #6
0
 public GowallaAPI(GowallaOAuthorizer OAuthorizer)
 {
     OAuth = OAuthorizer;
 }
コード例 #7
0
 public GowallaAPI(GowallaOAuthorizer OAuthorizer)
 {
     OAuth = OAuthorizer;
 }
コード例 #8
0
            public GowallaAuthorizationViewController(GowallaOAuthorizer oauth, string url, NSAction callback)
            {
                this.url = url;
                this.container = oauth;
                this.callback = callback;

                SetupWeb (url);
            }