Skip to content
This repository was archived by the owner on Jun 23, 2019. It is now read-only.

1.1.0

Latest

Choose a tag to compare

@okuryu okuryu released this 09 Apr 12:57
· 129 commits to master since this release

More simple initialization. You can initialize by pass the API key string to fastpay() function.

fastpay("YOUR_API_KEY", function (err, res, body) {
    if (!err && res.statusCode === 200) {
        console.log(body);
    }
});

Also, passing the option object works for backward compatibility as follows.

fastpay({
    apiKey: "YOUR_API_KEY"
}, function (err, res, body) {
    if (!err && res.statusCode === 200) {
        console.log(body);
    }
});