예제 #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"));
 }
            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"); });
            });
        }
 public GowallaAPI(GowallaOAuthorizer OAuthorizer)
 {
     OAuth = OAuthorizer;
 }
예제 #7
0
 public GowallaAPI(GowallaOAuthorizer OAuthorizer)
 {
     OAuth = OAuthorizer;
 }
            public GowallaAuthorizationViewController(GowallaOAuthorizer oauth, string url, NSAction callback)
            {
                this.url = url;
                this.container = oauth;
                this.callback = callback;

                SetupWeb (url);
            }