An open API service indexing awesome lists of open source software.

https://github.com/mergado/mergado-api-client-python

Mergado API Client for Python
https://github.com/mergado/mergado-api-client-python

api apps http json mergado platform

Last synced: 2 months ago
JSON representation

Mergado API Client for Python

Awesome Lists containing this project

README

          

# Mergado API Python Client

- [Mergado Apps Docs](http://mergado.github.io/docs/)
- [API docs](http://docs.mergado.apiary.io/)

## Usage

```python

from mergadoapiclient import client

# Prepare config with a OAuth2 credentials.
credentials = {
'client_id': '',
'client_secret': '',
'grant_type': 'client_credentials',
'token_uri': 'https://app.mergado.com/oauth2/token/', # optional
'api_uri': 'https://api.mergado.com/', # optional
'storage_class': 'yourapp.models.TokenStorage', # optional
}

# Build API client instance.
api = client.build(credentials)

# Get an Eshop with ID = 1.
api.get('shops/1')
```