MKM API Client
This is a simple node JS client for MKM API.
You first need to request your keys and tokens from magiccardmarket.eu .
Installation
npm install mkm-api
Usage
const MkmApiClient = ;const Client = '<app_key>' '<secret_key>'; Client;
The Client only accepts .get
and .post
methods for now. But you can use:
Client;
To use any method.
If you need access tokens for 3d party apps, you can use the method:
Client;
Full usage
.request
The full method is defined as:
Client;
Meaning that you can set your own headers
and tokens
.
Note that if you set tokens in this request (or in
.get
and.post
methods), they will override those set bysetAccessTokens
.