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);
            }
Exemple #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"));
        }
Exemple #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"); });
            });
        }
        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;
 }
Exemple #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);
            }