Giter VIP home page Giter VIP logo

plentyrest's Introduction

plenty-rest-python

version number: 0.0.1 author: Pierre Geier

Overview

Python REST client for Plentymarkets REST API

Installation / Usage

clone the repo:

$ git clone https://github.com/bloodywing/plentyrest.git
$ python setup.py install

Contributing

Just send pullrequests on github or open issues.

Example

from plentyrest.rest import Plenty

plenty = Plenty('myshop.plentymarkets-cloud02.com', 'restuser', 'password')
items = plenty.request('rest/items')  # lists your items

print(items)

plenty.request('rest/items', 'POST', json={
    ...
    'variations': [
        {
          'name': 'Spam'
        },
    ]
}

plentyrest's People

Contributors

bloodywing avatar mend-bolt-for-github[bot] avatar reusch avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

plentyrest's Issues

oauthlib Missing access token parameter.

Hallo,

erst einmal vielen Dank für diesen REST-Client.

Leider bekomme ich folgende Fehlermeldungen:

plenty = Plenty(resturl, restuser, restpasswd)
Traceback (most recent call last):
  File "C:/Project/rest_test.py", line 62, in <module>
    plenty = Plenty(resturl, restuser, restpasswd)
  File "C:\Project\plentyrest\rest.py", line 36, in __init__
    password=password)
  File "C:\Project\venv\lib\site-packages\requests_oauthlib\oauth2_session.py", line 306, in fetch_token
    self._client.parse_request_body_response(r.text, scope=self.scope)
  File "C:\Project\venv\lib\site-packages\oauthlib\oauth2\rfc6749\clients\base.py", line 415, in parse_request_body_response
    self.token = parse_token_response(body, scope=scope)
  File "C:\Project\venv\lib\site-packages\oauthlib\oauth2\rfc6749\parameters.py", line 425, in parse_token_response
    validate_token_parameters(params)
  File "C:\Project\venv\lib\site-packages\oauthlib\oauth2\rfc6749\parameters.py", line 435, in validate_token_parameters
    raise MissingTokenError(description="Missing access token parameter.")
oauthlib.oauth2.rfc6749.errors.MissingTokenError: (missing_token) Missing access token parameter.

Hast du eine woran das liegen könnte?

Beste Grüße

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.