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', 'connor+899@rehive.com', verified=True) `
Patch/Put: ` rehive.admin.company.switches.patch('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
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.