anitabyte / etsyv3 Goto Github PK
View Code? Open in Web Editor NEWPython client for the Etsy OpenAPI v3
License: GNU General Public License v3.0
Python client for the Etsy OpenAPI v3
License: GNU General Public License v3.0
Looks like we need to implement the new was_canceled parameter soon too: etsy/open-api#982
Hi, I keep getting this error, I am passing my id and listing_id, but unsure how to pass "UpdateListingRequest" parametre, do I need to pass the complete list, even if I only want to update one item, how do I pass the list? The UpdateListingRequest seems to show fields are optional? I have tried multiple ways, lists, dict, json.dumps etc, but I am lost with passing this UpdateListingRequest.
This works:
BDF_Etsy.get_listing(985775823, 151661511)
but, this does not
body={'title': 'Vintage French table lamp in quality bronze with a handmade lampshade of your best choice'}
BDF_Etsy.update_listing(985775823, 1585777523, body)
I understand this is not an issue with your code, which is great by the way, but i am stuck!
Warm regards
Paul
method is rising without obvious cause leading to weird behavior such as #14
Should raise something more helpfull e.g. ValueError("Invalid state")
Please share your email
There is a bug in your code:
def todict(obj, classkey=None, nullable=[]): ... if key not in nullable and value not in [[], "" or 0] else (key, None) ...
You None Key what have data. For example 'shipping_profile_id' what is nessesary for physical goods. (maybe mandatory) is None after providing data in the dict.
This will sove your problem. Not sure why you do this, if keys have values.
def todict(obj, classkey=None, nullable=[]): ... if value not in [[], "" or 0] else (key, None) ...
Hello,
First of all thank you for writing this and making it available, it looks great. I just wanted to ask if you plan on adding implementation for some of the endpoints which maybe became available since your last commit. I am mostly wondering about those two
https://developer.etsy.com/documentation/reference#operation/updateListing Patch
https://developer.etsy.com/documentation/reference#operation/uploadListingImage
According to the documentation they are ready for production use.
Hello there,
first thanks a lot for your efforts to bring us that etsy package :).
I wanted to integrate API with the AuthHelper class
. I could manage to get the callback_url, but then i stuck here:
views.route("/etsy_callback", methods=['GET'])
@login_required
def etsy_callback():
data = request.args
state = data['state']
code = data['code']
if state and code:
res = AuthHelper(etsy_api_key, 'https://localhost:5000/etsy_callback', 'listings_w listings_d listings_r')
res.set_authorisation_code(state, code) # <-- here the error occurs
...
and here is the output
RuntimeError: No active exception to reraise
What do i miss here?
The path for the auth_helper.py
file that is shown in the README section is incorrect.
The incorrect path is: etsyv3.utils.util.auth.auth_helper
The correct path is: etsyv3.util.auth.auth_helper
When try to create draft DOWNLOAD listings API returns this error:
etsyv3.etsy_api.BadRequest: {'error': 'A shipping_profile_id is required for physical listings.'}
Because default listing type is PHYSICAL and needs "shipping_profile_id".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.