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)
-
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
256565c4e352361745705ffefca20f987c17191e7cf1b0f8f02c77830a6692e6
|
|
| MD5 |
6b36c7d43c1b0242651430e27f9242d9
|
|
| BLAKE2b-256 |
c4592c4c3fe506c00f002cae4a9aca75b36c1b6abdb55712b4660d63bbfa547d
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0602daca5e886f47742a6ba0ad8c13b8c12154fcf01f9cc91f26240778d842e9
|
|
| MD5 |
b12becb8a4091037acb5b55c171782ce
|
|
| BLAKE2b-256 |
7191fc6749fde757a5a56a43f69a8f3b4db33661184f9a10629e7fce7c0f3c05
|