PHP Classes

Etsy api v3

Recommend this page to a friend!

      PHP OAuth Library  >  All threads  >  Etsy api v3  >  (Un) Subscribe thread alerts  
Subject:Etsy api v3
Summary:Etsy v3 Oauth2 built in
Messages:13
Author:Joel Fischer
Date:2021-07-10 23:43:26
 
  1 - 10   11 - 13  

  11. Re: Etsy api v3   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2023-01-08 23:45:24 - In reply to message 10 from Andrew Leonard
Hello Andrew,

Sorry for the delay. I have been busy with customer projects.

I started to work on this, but it is not accepting my redirect URI as you may see here:

e-na.net/mlemos/oauth/login_with_et ...

I went to the Etsy application page and could not see where I configured the redirect URL.

etsy.com/developers/your-apps

Do you know if it is possible to configure the redirect URL?

My application also says it is pending approval.

Do you know if the application needs to be approved to be tested?

  12. Re: Etsy api v3   Reply   Report abuse  
Picture of Andrew Leonard Andrew Leonard - 2023-01-16 22:32:11 - In reply to message 11 from Manuel Lemos
You configure the redirect URL in your Etsy App settings.

I think you have to patiently wait for the app to be approved.

I have been able to access and use the V3 of the API, however, after 1 hour the initial token expires and you need to use the refresh token.

More details on the refresh token is shown here:

developers.etsy.com/documentation/e ...

If you can post the code for the refresh token then I can have a go and see if it works.




  13. Re: Etsy api v3   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2023-01-16 23:36:58 - In reply to message 12 from Andrew Leonard
Hello Andrew,

My application has been there for quite some time. Can you share the details that you used to approve your application?

If you can share the credentials of your application by email, I can try to make the package work with Esty OAuth 2 (Etsy API version 3);

The OAuth class already supports the automatic renewal of access tokens using refresh tokens. The base oauth_client_class uses PHP sessions to store receipts, so it only works when the user is present.

There is the file_oauth_client_class that is more suited to make API calls when the user is not present because access tokens and refresh tokens are stored in server-side files. There is a tutorial article for that here:

phpclasses.org/blog/package/7700/po ...

Would you like me to try to make it work with your application credentials, or do you prefer to try to make it work yourself?

 
  1 - 10   11 - 13