Giter Site home page Giter Site logo

voodoo3300 / python_plentymarkets_api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from initbasti/python_plentymarkets_api

0.0 0.0 0.0 725 KB

Interface to services from the PlentyMarkets RestAPI written in python3.

License: GNU Affero General Public License v3.0

Python 100.00%

python_plentymarkets_api's Introduction

Overview

Interface for the PlentyMarkets API.

Setup

Requirements

  • Python 3.7.8+

Installation

Install it directly into an activated virtual environment:

$ pip install python_plenty_api

or add it to your Poetry project:

$ poetry add plenty_api

Usage

After installation, the package can imported:

$ python
>>> import plenty_api
>>> plenty_api.__version__

Examples

import plenty_api

def main():
    # Get the bearer token and set the basic attributes for an endpoint
    plenty = plenty_api.PlentyApi(base_url='https://{your-shop}.plentymarkets-cloud01.com',  # available under setup->settings->API->data
                                  use_keyring=True,  # Save the credentials into your system wide Keyring or not
                                  data_format='json',  # Choose the output format (default JSON)
                                  debug=True)  # display the constructed endpoint before making the request

    orders = plenty.plenty_api_get_orders_by_date(start='2020-09-20',
                                                  end='2020-09-24',
                                                  date_type='payment',  # Get orders that were payed in between [start] and [end]
                                                  additional=['documents', 'locations'],  # Include additional attributes to the response
                                                  refine={'orderType': '1', 'referrerId': '1'})  # Only get orders with type 1 and from referrer 1

if __name__ == '__main__':
    main()

Contact

Author: Sebastian Fricke, Company: Panasiam, Email: [email protected]

python_plentymarkets_api's People

Contributors

initbasti avatar voodoo3300 avatar codingforfun avatar elcolumbio avatar jan-panasiam avatar

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.