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)
-
SandBox : https://sandbox-api.milacoins.com
-
Production: https://api.milacoins.com
Configure Your Credentials
-
Go to MilaCoins Dashboard( production, sandbox)
-
Navigate to api settings
-
Generate the api keys
-
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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| milauth-0.1.0.tar.gz | 3.2 kB | Without provenance | Details for milauth-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| milauth-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for milauth-0.1.0-py3-none-any.whl |
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
|
Security for milauth 0.1.0
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.