sscheetz / etsy-python2

Python access to the Etsy API
http://developer.etsy.com
GNU General Public License v3.0
32 stars 18 forks source link

Please help. #7

Closed dexter1964 closed 4 years ago

dexter1964 commented 4 years ago

First: Thank you so much for putting so much time into this ETSY API Interface. and I'm sorry I'm having such a problem with figuring this out.

I've been able to get this to work using my "API-Key". (I believe this is an endpoint that I do not need OAuth to access.

from etsy2 import Etsy etsy = Etsy(api_key=) etsy.findAllFeaturedListings()

Here's my issue: I can't seem to figure out how to get the Tokens for the "OAuth Access". I'm trying to use this piece of code. But I can't seem to get back what I'm looking for. -- I hope you can help. I know that if you can just get me started, I can figure out the rest. But for now, I'm stumped.

etsy_oauth = EtsyOAuthClient(client_key=api_key, client_secret=shared_secret, resource_owner_key=oauth_token, resource_owner_secret=oauth_token_secret) etsy = Etsy(etsy_oauth_client=etsy_oauth)

My task is to pull "Visits", "Views", and "Current Open Orders", from my own Etsy Account. But I can't get past the OAuth Piece.

Can I please ask you for some "starter-type code" to just get me started.? (I've pulled data from other API sources and have parsed JSON. But I've never had to perform an OAuth, before.

Thanks for your time and patience...

dexter1964 commented 4 years ago

took two days, but I finally figured it out.