Exemple #1
0
        public async void GetEmailPromptAutoLoginPing(string apikey, string clientguid)
        {
            Dictionary <string, string> data = new Dictionary <string, string>();

            data.Add("apikey", apikey);
            data.Add("clientguid", clientguid);
            await EmailPromptAutoLoginPingAPI.GetEmailPromptAutoLoginPing(data, response =>
            {
                Debug.Write("access_token", response.access_token);
                DismissViewController(true, null);
                GetReadAllProfiles(this.apiKey, response.access_token);
            }, (error) =>
            {
                GetEmailPromptAutoLoginPing(apikey, clientguid);
            });
        }
        public async void GetEmailPromptAutoLoginPing(string apikey, string clientguid)
        {
            Dictionary <string, string> data = new Dictionary <string, string>();

            data.Add("apikey", apikey);
            data.Add("clientguid", clientguid);
            await EmailPromptAutoLoginPingAPI.GetEmailPromptAutoLoginPing(data, response =>
            {
                var activity2 = new Intent(this, typeof(ProfileActivity));
                activity2.PutExtra("access_token", response.access_token);
                StartActivity(activity2);
            }, (error) =>
            {
                GetEmailPromptAutoLoginPing(apikey, guid.GUIDTOKEN);
            });
        }