Metadata-Version: 2.1
Name: berbix
Version: 0.0.6
Summary: SDK for Berbix integrations
Home-page: https://github.com/berbix/berbix-python
Author: Eric Levine
Author-email: eric@berbix.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: requests

# Berbix Python SDK

This Berbix Python library provides simple interfaces to interact with the Berbix API.

## Usage

### Constructing the client

    import berbix

    client = berbix.Client(
      client_id='your_client_id_here',
      client_secret='your_client_secret_here')

### Fetching user tokens

    user_tokens = client.exchange_code(code)

### Fetching user data

    client.fetch_user(user_tokens)

### User tokens from storage

    refresh_token = '' # fetched from database
    user_tokens = UserTokens.from_refresh(refresh_token)

### Creating a user

    user_tokens = client.create_user(
      email="email@example.com", # previously verified email, if applicable
      phone="+14155555555", # previously verified phone number, if applicable
      customer_uid="interal_customer_uid", # ID for the user in internal database
    )

## Release

To release a new version of the SDK, first bump the version in `setup.py`.

    python setup.py sdist bdist_wheel
    twine upload dist/*


