BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etsy-python
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
etsy-python
Commits
b62f779f
Commit
b62f779f
authored
Oct 27, 2011
by
Alek Storm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix: Only use OAuth client if it's actually set; otherwise, use normal _get_url
parent
1d3e87ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
_v2.py
etsy/_v2.py
+4
-2
No files found.
etsy/_v2.py
View file @
b62f779f
...
...
@@ -14,6 +14,7 @@ class EtsyV2(API):
def
__init__
(
self
,
api_key
=
''
,
key_file
=
None
,
method_cache
=
missing
,
etsy_env
=
EtsyEnvSandbox
(),
log
=
None
,
etsy_oauth_client
=
None
):
self
.
api_url
=
etsy_env
.
public_api_url
self
.
etsy_oauth_client
=
None
if
etsy_oauth_client
:
self
.
api_url
=
etsy_env
.
private_api_url
...
...
@@ -22,5 +23,6 @@ class EtsyV2(API):
super
(
EtsyV2
,
self
)
.
__init__
(
api_key
,
key_file
,
method_cache
,
log
)
def
_get_url
(
self
,
url
,
http_method
,
content_type
,
body
):
return
self
.
etsy_oauth_client
.
do_oauth_request
(
url
,
http_method
,
content_type
,
body
)
if
self
.
etsy_oauth_client
is
not
None
:
return
self
.
etsy_oauth_client
.
do_oauth_request
(
url
,
http_method
,
content_type
,
body
)
return
API
.
_get_url
(
self
,
url
,
http_method
,
content_type
,
body
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment