Skip to main content

Rehive SDK for Python

Project description

# rehive-python Python SDK for Rehive

# Install ` pip install rehive `

# Examples and How-to

` from rehive import Rehive rehive = Rehive() # OR Rehive(API_TOKEN_HERE) ` You can parse an api token or leave blank if manually logging in. Each object instance will store it’s own token and act as another user.

Login: ` rehive.auth.login({"user": "user", "company": "company", "password": "pass"}) `

Get: ` rehive.admin.accounts.get() `

Get nested objects: ` rehive.admin.accounts.obj('5AT24mW61H').currencies.get() `

Get with filters: ` rehive.admin.transactions.get(filters={"status":"confirmed"}) `

Create: ` rehive.admin.users.emails.create('1d3e584d-ac56-483c-8aa5-d4ef059608ba', '', verified=True) `

Patch/Put: `'1', enabled=True) # Patch switch with identifier 1 `

Pagination: ` rehive.admin.currencies.get() rehive.admin.currencies.get_next() rehive.admin.currencies.get_previous() `

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

rehive-0.3.5.tar.gz (7.6 kB view hashes)

Uploaded Source

Built Distribution

rehive-0.3.5-py3-none-any.whl (11.9 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