Skip to main content

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

Release files for milauth 0.1.0

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

Source distribution (sdist)

Source distribution for milauth 0.1.0
File Size Uploaded
milauth-0.1.0.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for milauth 0.1.0
File Interpreter ABI Platform
milauth-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.5 kB

Release files / milauth-0.1.0.tar.gz

Download URL milauth-0.1.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
256565c4e352361745705ffefca20f987c17191e7cf1b0f8f02c77830a6692e6
BLAKE2b-256 checksum
How to use checksums
c4592c4c3fe506c00f002cae4a9aca75b36c1b6abdb55712b4660d63bbfa547d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release files / milauth-0.1.0-py3-none-any.whl

Download URL milauth-0.1.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0602daca5e886f47742a6ba0ad8c13b8c12154fcf01f9cc91f26240778d842e9
BLAKE2b-256 checksum
How to use checksums
7191fc6749fde757a5a56a43f69a8f3b4db33661184f9a10629e7fce7c0f3c05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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