From 1cd10bc54c6d22fe2eb62a2480f87f91074b56b8 Mon Sep 17 00:00:00 2001 From: Kevin Fitzgerald Date: Sun, 15 Mar 2015 14:04:36 -0500 Subject: [PATCH] Added example for apiKeyInfo to the docs --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f6a4212..f45fd87 100644 --- a/README.md +++ b/README.md @@ -237,4 +237,16 @@ Publication Date var publicationDate = response.publicationDate; //YYYYMMDDTHHMMSS string // Do something with data - }); \ No newline at end of file + }); + +API Key Information +---------- + var AlchemyAPI = require('alchemy-api'); + var alchemy = new AlchemyAPI(''); + alchemy.apiKeyInfo({}, function(err, response) { + if (err) throw err; + + // Do something with data + console.log('Status:', response.status, 'Consumed:', response.consumedDailyTransactions, 'Limit:', response.dailyTransactionLimit); + + });