Skip to main content

No project description provided

Project description

Merchant001 SDK

Install

Client-only

For PIP

pip3 install merchant001_sdk

For PDM

pdm add merchant001_sdk

With CLI

For PIP

pip3 install merchant001_sdk[cli]

For PDM

pdm add merchant001_sdk[cli]

Use

Client

Sync

from merchant001_sdk.client import Client


with Client(token=...) as client:
    # comming soon...

Async

from merchant001_sdk.client import Client


async def main(token: str) -> None:
    async with Client(token=token) as client:
        # comming soon...

Methods

In this section I use async-only, but you can use sync/async (as in previous 2-level section).

Merchant Healthcheck

from merchant001_sdk.client import Client


async def main(token: str) -> None:
    async with Client(token=token, endpoint="https://api.merchant001.io/") as client:
        result = await client.get_merchant_healthcheck()

    print(result)

On Success:

MerchantHealthcheck(success=True)

On Error (invalid token for example):

ErrorResult(status_code=401, message='Unavailable api token', error='Unauthorized')

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

merchant001-sdk-0.0.5.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

merchant001_sdk-0.0.5-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file merchant001-sdk-0.0.5.tar.gz.

File metadata

  • Download URL: merchant001-sdk-0.0.5.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.9.2 CPython/3.11.4

File hashes

Hashes for merchant001-sdk-0.0.5.tar.gz
Algorithm Hash digest
SHA256 98769d51dee724ea20277ef19810eed2622477905bde9eeed0f95702286b6d03
MD5 80c51712b056ef18f855abb6fedca949
BLAKE2b-256 6be6a018634cffcf93cd50b299f75a1fa5ce19866496348ee40a73af49590919

See more details on using hashes here.

File details

Details for the file merchant001_sdk-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for merchant001_sdk-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 627ca71b81e26fe719ce6a5bae4ddd4c2818eb822b37e8b001cd5b55119b9a9c
MD5 730d73343795e93ae3c46e640714a93c
BLAKE2b-256 cc34ce2391f8a15e52b1bc0dd749c94b6547e8ad62d8b540f50a0345ced59f30

See more details on using hashes here.

Supported by

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