package
Gyft api client
npm install gyftGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
$ npm install --save gyft$ npm testvar Gyft = require('gyft')
var gyft = Gyft({
apiKey: 'blah'
, secret: 'blah'
})
gyft.listCards(function(err, cards) {
if (err) throw err // error should be handled, not thrown
console.log(cards)
// => [ { id: <card id>
// => , merchant_id: <merchant id>
// => , merchant_name: <merchant name>
// => , card_currency_code: 'USD'
// => , opening_balance: 100
// => , merchant_icon_image_url_hd: 'http://...'
// => , cover_image_url_hd: 'http://...'
// => } ]
})opts must contain both an apiKey and secret property. It may also
contain a url property. The url will be the API url to use to access
the Gyft API.
opts can contain a format property that will format the results into an object.
cb will be called with function(err, results)
Returns the account info
Acceptable Parameters:
shop_card_id The unique id of the shop card (required)to_email The user email address (required)reseller_reference Reseller reference codereturn_direct_link Return a direct link to the gift cardfirst_name The user first name (recommended)last_name The user last namebirthday The user's birthdayReturns all transactions
Returns the last count transactions
Returns the first count transactions
Evan Lucas
MIT (See LICENSE for more info)
Estimated unpacked size across 35 packages.
6.1 MB
Includes dependencies.