Skip to main content

apiclient

Project description

Custom apiclient

dbutils

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


Download files

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

Source Distribution

apiclient-gonzalo123-1.0.2.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

apiclient_gonzalo123-1.0.2-py3-none-any.whl (2.4 kB view hashes)

Uploaded Python 3

Supported by

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