amzn / selling-partner-api-models

This repository contains OpenAPI models for developers to use when developing software to call Selling Partner APIs.
Apache License 2.0
580 stars 730 forks source link

Python API client #16

Closed diwu1989 closed 2 years ago

diwu1989 commented 3 years ago

I would like to use Python to interact with the seller API. Would you be able to generate official API bindings for Python?

charliecode commented 3 years ago

Here are two links which might help. I would suggest using openapi-generator over swagger-codegen as the docs are much easier and the generators appear to be less buggy.

Creating SP-API client from models. OpenAPI generators and docs

GriceTurrble commented 3 years ago

Interested in this as well from the developer side, though I do not have a Seller account myself. Have been working part-time on the python-amazon-mws middleware for some time now, and would like to cover SP-API in a separate project when I have some time there.

Of course, if there were an official client, or just official Mustache templates to build off, that would be nice to have. :)

charliecode commented 3 years ago

@GriceTurrble A good place to start would be to customize the templates the generator uses. Here are the docs for customizing with openapi-generator.

seanevan commented 3 years ago

Hi all,

Python client libraries are planned, but I am not at liberty to share a timeline for when we'll provide them. We'll leave this issue open for others to register interest in Python client libs.

Thanks, Sean Evans Manager, Support Engineering

diwu1989 commented 3 years ago

I tried to use the generator, but the code that it spewed out seem to be broken :( I think it's best if amzn officially generated the Python bindings & published it as a proper package onto Pypi for us all to use. Thanks

numenory commented 3 years ago

Hi, yes also been looking for a while on python documentation / python libraries. Currently developing using python on mws

wernight commented 3 years ago

The current documentation can be followed up to creating requests, however it gives some 403 errors and my guess is that the signing describe here is actually required. Implementing and testing this signing is however non-trivial. Especially if you're unsure if everything before that is actually set up properly. I'd really welcome a Python client, better error messages, and a way to test this signature or at least hard of the system (just as an example I can use the user's ARN or the role's ARN at step 6 and both give no error).

dorian-i commented 2 years ago

@seanevan any update on the python clients?

github-actions[bot] commented 2 years ago

This is a very old issue that is probably not getting as much attention as it deserves. We encourage you to check if this is still an issue after the latest release and if you find that this is still a problem, please feel free to open a new issue and make a reference to this one.