From c5123d52594fb0e204f3bdf7c638feadc1604a6c Mon Sep 17 00:00:00 2001 From: Peter Stenger Date: Fri, 14 Aug 2020 17:48:42 -0400 Subject: [PATCH 1/3] Bumped version, added Other classes --- etsy2/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etsy2/__init__.py b/etsy2/__init__.py index 4f40168..360e0de 100644 --- a/etsy2/__init__.py +++ b/etsy2/__init__.py @@ -1,8 +1,8 @@ from ._v2 import EtsyV2 as Etsy from .etsy_env import EtsyEnvProduction +from .oauth import EtsyOAuthClient, EtsyOAuthHelper - -__version__ = '0.7.0' +__version__ = '0.7.1' __author__ = 'Sean Scheetz' __copyright__ = 'Copyright 2010, Etsy Inc.' __license__ = 'GPL v3' From 8831b3d0d6ab5d8423871a3a36d9e2fac80b92da Mon Sep 17 00:00:00 2001 From: Peter Stenger Date: Fri, 14 Aug 2020 17:51:07 -0400 Subject: [PATCH 2/3] Made OAUTH more clear --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e817427..d36e633 100644 --- a/README.md +++ b/README.md @@ -22,16 +22,16 @@ Forked by Sean Scheetz The simplest way to install the module is pip -
+```
 $ pip install etsy2
-
+``` To install from source, extract the tarball and use the following commands. -
+```
 $ python setup.py build
 $ sudo python setup.py install
-
+``` ## Overview @@ -56,6 +56,7 @@ etsy.findAllFeaturedListings() For endpoints that do require OAuth you must pass an `EtsyOAuthClient` to the `Etsy` constructor. ```python +from etsy2 import EtstOAuthClient, Etsy etsy_oauth = EtsyOAuthClient(client_key=api_key, client_secret=shared_secret, resource_owner_key=oauth_token, @@ -65,6 +66,7 @@ etsy = Etsy(etsy_oauth_client=etsy_oauth) The `EtsyOAuthClient` requires a client_key, client_secret, resource_owner_key, and resource_owner_secret to be constructed. The client_key and the client_secret are the keystring and shared secret given to you by etsy upon registering your app. The resource_owner_key and resource_owner_secret are the oauth_token and oauth_token_secret that must be retrieved by working through etsy's oauth workflow. See the "Obtaining Etsy OAuthCredentials" section to learn how to get the oauth_token and oauth_token_secret used by the EtsyOAuthClient. + ## Obtaining Etsy OAuthCredentials The `EtsyOAuthHelper` exists to simplify the retrieval of the oauth_token and oauth_token_secret. The first step of the process will always be generating the login_url to which you will redirect the resource owner (user of your application). Usage is shown below. From 96090849c19db291c66c98e5a317a046c71f9f52 Mon Sep 17 00:00:00 2001 From: Peter Stenger Date: Fri, 14 Aug 2020 17:53:06 -0400 Subject: [PATCH 3/3] typo --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index d36e633..f84c854 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ etsy.findAllFeaturedListings() For endpoints that do require OAuth you must pass an `EtsyOAuthClient` to the `Etsy` constructor. ```python -from etsy2 import EtstOAuthClient, Etsy +from etsy2 import EtsyOAuthClient, Etsy etsy_oauth = EtsyOAuthClient(client_key=api_key, client_secret=shared_secret, resource_owner_key=oauth_token, @@ -66,7 +66,6 @@ etsy = Etsy(etsy_oauth_client=etsy_oauth) The `EtsyOAuthClient` requires a client_key, client_secret, resource_owner_key, and resource_owner_secret to be constructed. The client_key and the client_secret are the keystring and shared secret given to you by etsy upon registering your app. The resource_owner_key and resource_owner_secret are the oauth_token and oauth_token_secret that must be retrieved by working through etsy's oauth workflow. See the "Obtaining Etsy OAuthCredentials" section to learn how to get the oauth_token and oauth_token_secret used by the EtsyOAuthClient. - ## Obtaining Etsy OAuthCredentials The `EtsyOAuthHelper` exists to simplify the retrieval of the oauth_token and oauth_token_secret. The first step of the process will always be generating the login_url to which you will redirect the resource owner (user of your application). Usage is shown below.