Skip to main content

Thepeer Python SDK

GitHub issues PyPI - Python Version PyPI PyPI - Downloads PyPI - License pre-commit

Python SDK for Thepeer.

Quick Start

  1. Install thepeer-sdk
pip install thepeer-sdk
  1. Signup to get your API keys here

Usage

Initiate

from thepeer_sdk import ThepeerSdkClient

thepeer_sdk_client = ThepeerSdkClient(
    secret_key="SECRET_KEY_GOES_HERE"
)

# Get the list of all indexed users
thepeer_sdk_client.list_users()

Available Methods

User

  • index_user : Index a particular user on Thepeer

    parameters:

    • name(str)
    • identifier(str) : unique user identifier
    • email(str)

    returns: dict

  • list_users : Get the list of all indexed users

    parameters:

    • page(int) : page number to return
    • perPage(int) : amount of records to return per page

    returns: dict

  • update_user : Update your user's identifier when they make a profile update to their identifier on your platform.

    parameters:

    • user_ref(str) : the reference returned when the user was indexed
    • user_identifier(str) : unique user identifier

    returns: dict

  • delete_user : Delete a user in the event that a user deactivates their account on your platform

    parameters:

    • user_ref(str) : the reference returned when the user was indexed

    returns: dict

Link

  • get_user_links : This returns all linked accounts associated with a user.

    parameters:

    • user_ref(str) : the reference returned when the user was indexed

    returns: dict

  • get_link : Get a linked account details

    parameters:

    • link_id(str) : link ID

    returns: dict

Send

  • verify_receipt : Verify a particular receipt.

    parameters:

    • receipt_ref(str) : reference of the receipt to process

    returns: dict

  • process_receipt : Process receipts generated from Thepeer inline.

    parameters:

    • receipt_ref(str) : reference of the receipt to process
    • event(str)

    returns: dict

Direct Charge

  • charge_link : Charge your user's linked account at any time

    parameters:

    • link_id(str) : id of the link to charge
    • amount(int) : amount to charge
    • remark(str) : narration of the charge

    returns: dict

  • authorize_charge : authorize direct charge request via webhooks

    parameters:

    • charge_ref(str) : direct charge reference
    • event(str)

    returns: dict

Upgrade

pip install --upgrade thepeer-sdk

Extra

Visit the official Thepeer documentation for more information.

License

See LICENSE.

Metadata

Release files for thepeer-sdk 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for thepeer-sdk 0.0.2
File Size Uploaded Provenance Actions
thepeer-sdk-0.0.2.tar.gz 10.2 kB Without provenance Details for thepeer-sdk-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for thepeer-sdk 0.0.2
File Interpreter ABI Platform Actions
thepeer_sdk-0.0.2-py3-none-any.whl Python 3 none any Details for thepeer_sdk-0.0.2-py3-none-any.whl

Total release size: 26.3 kB

Release files / thepeer-sdk-0.0.2.tar.gz

Download URL thepeer-sdk-0.0.2.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
18562cc1c7c09a2c1c91bf2c41003feb1267a4b678e3aee50581c032df7ef4c9
BLAKE2b-256 checksum
How to use checksums
0516c349d696f1db6634b463d93195237317bab1d9f4f1b4c964d1c8df903c02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.10 CPython/3.7.12 Darwin/21.2.0

Release files / thepeer_sdk-0.0.2-py3-none-any.whl

Download URL thepeer_sdk-0.0.2-py3-none-any.whl
Size 16.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eae0a957fd12d1f188d4f5e6bbff2b72c59a3ed3cdd661348fe27ba9d075c1fa
BLAKE2b-256 checksum
How to use checksums
5e89e2145f7c259b2d0cfc87a3754c7a6159b7089068ff990af34947ce18281e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.10 CPython/3.7.12 Darwin/21.2.0

Security for thepeer-sdk 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page