Skip to main content

MilaCoins Api

Project description

MilaCoins API

Full documentation: api.milacoins.com

Sample Usage

import milauth



apiKey = "apiKey"

secretKey ="secretKey"

url = "https://sandbox-api.milacoins.com"



milacoinsApi = milauth.Api(url,apiKey,secretKey)

Set the Environment (url)

Configure Your Credentials

  1. Go to MilaCoins Dashboard( production, sandbox)

  2. Navigate to api settings

  3. Generate the api keys

  4. add IP to the white list

Request Method

milacoinsApi.request(endpoint:string, method:string[default: 'GET'], query:Object, body:Object)

Request Example

try:

    invoices = milacoinsApi.request('/api/v1/transactions/invoices/',query={'limit': 2})

    print(invoices)

except milauth.MilaCoinsError as ApiError:

    print(ApiError.code)

    print(ApiError)

API Errors

Any response status > 399 will throw Error.

Error properties:

  • requestID : string

  • code: number

  • message: string

  • name: string

Full errors list: click here

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

milauth-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

milauth-0.1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file milauth-0.1.0.tar.gz.

File metadata

  • Download URL: milauth-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for milauth-0.1.0.tar.gz
Algorithm Hash digest
SHA256 256565c4e352361745705ffefca20f987c17191e7cf1b0f8f02c77830a6692e6
MD5 6b36c7d43c1b0242651430e27f9242d9
BLAKE2b-256 c4592c4c3fe506c00f002cae4a9aca75b36c1b6abdb55712b4660d63bbfa547d

See more details on using hashes here.

File details

Details for the file milauth-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: milauth-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for milauth-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0602daca5e886f47742a6ba0ad8c13b8c12154fcf01f9cc91f26240778d842e9
MD5 b12becb8a4091037acb5b55c171782ce
BLAKE2b-256 7191fc6749fde757a5a56a43f69a8f3b4db33661184f9a10629e7fce7c0f3c05

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