Failed to get oauth token.

230 views
Skip to first unread message

star davis

unread,
Jun 11, 2020, 5:19:49 PM6/11/20
to Etsy API
Hi, there
I want to try to get access to member's account. 
I have got to the temp credentials(oauth_token, oauth_token_secret) by using my consumer_key and consumer_secret.
Then, I redirected the request to the signup page with temp credentials.
When I logged in etsy with my shop account, I received this message.
"Sorry, you do not have access to this application.

This application has limited access, and the user you are logged in as does not have access to this application. If the error persists, you should contact the application's original author."


I hope someone can help me with this issue.

Thanks.

assaf.l...@gmail.com

unread,
Sep 18, 2020, 11:06:35 PM9/18/20
to Etsy API
Hi,
Was this issue ever resolved?
How was it done?
Still using etsy developer email assistance?

John Needham

unread,
Dec 14, 2020, 11:40:43 AM12/14/20
to Etsy API
I am also getting this problem, did either of you manage to resolve it?

邹邹声桂

unread,
Feb 9, 2021, 11:47:43 AM2/9/21
to Etsy API
see
        /// <summary>
        /// Get captcha link
        /// </summary>
        /// <param name="consumerKey"></param>
        /// <param name="consumerSecret"></param>
        /// <returns></returns>
        public string GetEtsyRequestToken(string consumerKey, string consumerSecret)
        {
            try
            {
                Console.WriteLine("GetEtsyRequestToken---consumerKey:" + consumerKey + ",consumerSecret:" + consumerSecret);
                var baseUrl = new Uri("https://openapi.etsy.com/v2/");//api
                var oauthClient = new RestClient(baseUrl)
                {
                    Authenticator = OAuth1Authenticator.ForRequestToken(consumerKey, consumerSecret)
                };
                var request = new RestRequest("oauth/request_token", Method.GET);
                var response = oauthClient.Execute(request);
                var content = HttpUtility.ParseQueryString(response.Content);
                var oauthToken = content["oauth_token"];
                var oauthTokenSecret = content["oauth_token_secret"];
                var loginUrl = content["login_url"];

                var result = new
                {
                    RequestToken = oauthToken,
                    TokenSecret = oauthTokenSecret,
                    LoginUrl = loginUrl
                };

                return result.ToJson();
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
                return "";
            }
        }

        /// <summary>
        /// etsy oauth token
        /// </summary>
        /// <param name="consumerKey"></param>
        /// <param name="consumerSecret"></param>
        /// <param name="requestToken"></param>
        /// <param name="tokenSecret"></param>
        /// <param name="verifyCode"></param>
        /// <returns></returns>
        public string SaveEtsyAuth(string consumerKey, string consumerSecret, string requestToken,
            string tokenSecret, string verifyCode)
        {
            try
            {
                Console.WriteLine("SaveEtsyAuth---consumerKey:" + consumerKey + ",consumerSecret:" + consumerSecret);                
                var baseUrl = new Uri("https://openapi.etsy.com/v2/");
                var oauthClient = new RestClient(baseUrl)
                {
                    Authenticator = OAuth1Authenticator.ForRequestToken(consumerKey, consumerSecret)
                };
                var request = new RestRequest("oauth/access_token", Method.GET);
                oauthClient.Authenticator = OAuth1Authenticator
                    .ForAccessToken(consumerKey, consumerSecret, requestToken, tokenSecret, verifyCode);
                var response = oauthClient.Execute(request);
                var content = HttpUtility.ParseQueryString(response.Content);
                var accessToken = content["oauth_token"];
                var accessToeknSecret = content["oauth_token_secret"];
                var token = new
                {
                    accessToken,
                    accessToeknSecret
                };

                return token.ToJson();
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
                return "";
            }
        }

ekrem siyah

unread,
Dec 3, 2021, 10:13:07 AM12/3/21
to Etsy API
does anyone have a solution to this problem?
Reply all
Reply to author
Forward
0 new messages