apiclient
Project description
Custom apiclient
Install
pip install apiclient-gonzalo123
Usage
Init client
from apiclient import ApiClient
client = ApiClient(token='my_secret token', base='http://localhost:8000')
GET Request
data = client.get('/api/route', dict(param1='value1'))
POST Request (with parameters in the url)
data = client.post('/api/route', params=dict(param1='value1'))
POST Request (with parameters in the request body)
data = client.post('/api/route', body=dict(param1='value1'))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for apiclient-gonzalo123-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d16a74a01c7aaf371250a225d869100aed858acfc94db24ec92e11e45a3c8bc3 |
|
MD5 | 6db3a16fe84f05e753974b44607b6d4b |
|
BLAKE2b-256 | 0281a686852f485c6b29229b58b8559ffd1652ba6a98fa3b41c18ed7daae0560 |
Close
Hashes for apiclient_gonzalo123-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48573ad52774b4eac1f19699688536eecadb868b21081cca75c4db061c1c7deb |
|
MD5 | 8c5da6c4e7db8861918230d3cce559ce |
|
BLAKE2b-256 | c0ccaf01e518a12b1a36c5319e8c0ced16e53799be2b303b22cc4d37acc4ac2d |