Skip to main content

Interface for the PlentyMarkets API.

Project description

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: sebastian.fricke.linux@gmail.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plenty_api-0.2.10.1.tar.gz (38.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plenty_api-0.2.10.1-py3-none-any.whl (40.6 kB view details)

Uploaded Python 3

File details

Details for the file plenty_api-0.2.10.1.tar.gz.

File metadata

  • Download URL: plenty_api-0.2.10.1.tar.gz
  • Upload date:
  • Size: 38.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.8.10 Linux/5.11.0-40-generic

File hashes

Hashes for plenty_api-0.2.10.1.tar.gz
Algorithm Hash digest
SHA256 b249a39280bec0e3aa60145b259fbe6ddf9966ef444bb29158cce398fff84cfd
MD5 4badf011501f93f1ed4ceb7d83e387f9
BLAKE2b-256 f8c6f0234e7fd2a880e0d02caa3fd41cfc1e6370ec8252af78004f9388e1a02a

See more details on using hashes here.

File details

Details for the file plenty_api-0.2.10.1-py3-none-any.whl.

File metadata

  • Download URL: plenty_api-0.2.10.1-py3-none-any.whl
  • Upload date:
  • Size: 40.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.8.10 Linux/5.11.0-40-generic

File hashes

Hashes for plenty_api-0.2.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d20116fb485a55257a45c3f86583ecc15fd76b80a297ad3a567d226eae683a3b
MD5 f794fa5d59e09e29285752a152479062
BLAKE2b-256 8998b5b705187a50ee3377d05af579ea31c3ccfb1f7756c9ad9a9ec941903f4b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page