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
3b8f2c50
Commit
3b8f2c50
authored
Dec 22, 2010
by
Marc Abramowitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move user-specific data into a config file that is not checked in.
parent
2d989c8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
test_v2.py
etsy/test_v2.py
+9
-11
No files found.
etsy/test_v2.py
View file @
3b8f2c50
...
...
@@ -59,22 +59,20 @@ def testCreateListing():
print
"Creating listing..."
result
=
etsy_api
.
createListing
(
description
=
'Description of my item'
,
title
=
'Title of my item'
,
price
=
5.95
,
# tags='accessories,case,compact,men,mirror,money_clip,card,cigarette,ipod,mp3_player,wallet,pocket,retro,women',
tags
=
'accessories'
,
materials
=
'case'
,
shipping_template_id
=
6509333
,
shop_section_id
=
6866915
,
quantity
=
5
)
description
=
config
.
description
,
title
=
config
.
title
,
price
=
config
.
price
,
tags
=
config
.
tags
,
materials
=
config
.
materials
,
shipping_template_id
=
config
.
shipping_template_id
,
shop_section_id
=
config
.
shop_section_id
,
quantity
=
config
.
quantity
)
listing_id
=
result
[
0
][
'listing_id'
]
print
"Created listing with listing id
%
d"
%
listing_id
result
=
etsy_api
.
uploadListingImage
(
listing_id
=
listing_id
,
image
=
file
(
'/Users/marca/Desktop/looselips.png'
)
)
result
=
etsy_api
.
uploadListingImage
(
listing_id
=
listing_id
,
image
=
config
.
image_file
)
print
"Result of uploading image:
%
r"
%
result
...
...
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