Dark

money

currency

Exchange rates and currency conversion

Introduction

Real time currency conversion and exchange rates. Rate updates occur every 5 minutes.

How to use

1. Firstly install the Micro node package

npm install @m3o/m3o-node --save

2. To consume any of the Micro APIs requires an API key. This can generated in the admin section. Once this is acquired, you just need to use this within your chosen API. All APIs follow the same pattern which you can see below:

1import m3o from '@m3o/m3o-node';
2
3const client = new m3o.Client({ token: 'INSERT_YOUR_YOUR_M3O_API_KEY_HERE' });
4
5client.call('API_NAME', 'API_METHOD', API_PAYLOAD)
6  .then(response => {
7    console.log(response);
8  });

3. So, for example to consume the method on the DB:

1import m3o from '@m3o/m3o-node';
2
3const client = new m3o.Client({ token: 'INSERT_YOUR_YOUR_M3O_API_KEY_HERE' });
4
5client.call('currency', 'Codes', {})
6  .then(response => {
7    console.log(response);
8  });

Authors

Asim
Dom

Feedback

Looking for something you can't find??

Let us know