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
- Host: GitHub
- URL: https://github.com/mergado/mergado-api-client-python
- Owner: mergado
- License: mit
- Created: 2017-03-17T14:01:29.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-12-09T07:46:43.000Z (over 1 year ago)
- Last Synced: 2024-12-09T08:32:21.186Z (over 1 year ago)
- Topics: api, apps, http, json, mergado, platform
- Language: Python
- Size: 13.7 KB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
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')
```