Metadata-Version: 2.1
Name: ready2order-api-wrapper
Version: 0.1.9
Summary: A Python wrapper for the Ready2Order API
Home-page: https://github.com/Wilhelm-Schweizer/ready2order_api
Author: Joan Arau
Author-email: arau.j@zinnfiguren.de
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Requires-Dist: pandas

# Ready2Order API Wrapper

A Python wrapper for the Ready2Order API that simplifies the interaction with various endpoints provided by the Ready2Order platform.

## Current Features

- Fetch company information
- Fetch product information
- Fetch all bills (invoices)
- Fetch a specific invoice by its ID

## Installation

You can install the package via pip:

```bash
pip install ready2order-api-wrapper
```

## Usage Example

```python
from ready2order_api.api import Bill, Company, Product

account_token = "your_account_token_here"

# Working with bills
bill = Bill(account_token)
bills_df = bill.get_all_bills()
print(bills_df)

# Working with company info
company = Company(account_token)
company_info = company.get_company_info()
print(company_info)

# Working with products
product = Product(account_token)
products_df = product.get_products()
print(products_df)
```

## How to get your account token

To get your developer token go to [Ready2Order API](https://ready2order.com/en/api/), scroll to the bottom of the page and submit your email address to request the API token.

Now run the following code to get your account token:

```python
from ready2order_api import get_acct_token

get_acct_token.get_account_token("YOUR_DEVELOPER_TOKEN")


```
Now click on the URL starting with: https://my.ready2order.com/api/grantAccess/..., enter your login credentials and click login. You will be redirected to a blank page. Copy the account token from the URL and save it.


