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
a3eac450
Commit
a3eac450
authored
Oct 31, 2011
by
Dan McKinley
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6 from alekstorm/endpoint_update
Update API endpoint URLs
parents
caad6946
760f241f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
11 deletions
+5
-11
_v2.py
etsy/_v2.py
+1
-3
etsy_env.py
etsy/etsy_env.py
+4
-8
No files found.
etsy/_v2.py
View file @
a3eac450
...
...
@@ -8,16 +8,14 @@ except ImportError:
from
cgi
import
parse_qsl
class
EtsyV2
(
API
):
api_url
=
'http://openapi.etsy.com/v2/sandbox/public'
api_version
=
'v2'
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
.
api_url
=
etsy_env
.
api_url
self
.
etsy_oauth_client
=
None
if
etsy_oauth_client
:
self
.
api_url
=
etsy_env
.
private_api_url
self
.
etsy_oauth_client
=
etsy_oauth_client
super
(
EtsyV2
,
self
)
.
__init__
(
api_key
,
key_file
,
method_cache
,
log
)
...
...
etsy/etsy_env.py
View file @
a3eac450
class
EtsyEnvSandbox
(
object
):
request_token_url
=
'http://
openapi.etsy.com/v2/sandbox
/oauth/request_token'
access_token_url
=
'http://
openapi.etsy.com/v2/sandbox
/oauth/access_token'
request_token_url
=
'http://
sandbox.openapi.etsy.com/v2
/oauth/request_token'
access_token_url
=
'http://
sandbox.openapi.etsy.com/v2
/oauth/access_token'
signin_url
=
'https://www.etsy.com/oauth/signin'
public_api_url
=
'http://openapi.etsy.com/v2/sandbox/public'
private_api_url
=
'http://openapi.etsy.com/v2/sandbox/private'
api_url
=
'http://sandbox.openapi.etsy.com/v2'
class
EtsyEnvProduction
(
object
):
request_token_url
=
'http://openapi.etsy.com/v2/oauth/request_token'
access_token_url
=
'http://openapi.etsy.com/v2/oauth/access_token'
signin_url
=
'https://www.etsy.com/oauth/signin'
public_api_url
=
'http://openapi.etsy.com/v2/public'
private_api_url
=
'http://openapi.etsy.com/v2/private'
api_url
=
'http://openapi.etsy.com/v2'
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