Code Monkey home page Code Monkey logo

etsyv3's People

Contributors

anitabyte avatar creat3dsolutions avatar d-winch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

etsyv3's Issues

raise NotImplementedError update_listing()

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

Enhancement: Future implementation

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.

create_draft_listing method (def todict) nullable items - BUG

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) ...

RuntimeError: No active exception to reraise

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.