public async Task <ResponseData> GetAccessToken(string email, string password) { RequestInfor requestInfor = new RequestInfor() { UrlBase = Configuarations.Url_GetToken, HeaderValue = new HeaderValue() { AuthorizationType = "Basic", SecretUser = Configuarations.ClientId, SecretPass = Configuarations.ClientSecrets }, FormValue = new List <KeyValuePair <string, string> >() { new KeyValuePair <string, string>("grant_type", "password"), new KeyValuePair <string, string>("username", email), new KeyValuePair <string, string>("password", Helpers.EncryptPassWord(password)) } }; return(await ConnectAPI.GetToken(requestInfor)); }