Skip to content

Commit

Permalink
Added example for apiKeyInfo to the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kfitzgerald committed Mar 15, 2015
1 parent 5c5274e commit 1cd10bc
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,4 +237,16 @@ Publication Date
var publicationDate = response.publicationDate; //YYYYMMDDTHHMMSS string

// Do something with data
});
});

API Key Information
----------
var AlchemyAPI = require('alchemy-api');
var alchemy = new AlchemyAPI('<YOUR API KEY>');
alchemy.apiKeyInfo({}, function(err, response) {
if (err) throw err;

// Do something with data
console.log('Status:', response.status, 'Consumed:', response.consumedDailyTransactions, 'Limit:', response.dailyTransactionLimit);
});

0 comments on commit 1cd10bc

Please sign in to comment.