![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
npm install fingerfoodstudios/fusebill-node
Documentation is NOT available the API documentation is here http://help.fusebill.com/api-resource-urls
Every resource is accessed via your fusebill
instance:
var fusebill = require('fusebill')(' your fusebill API key ');
// fusebill.{ RESOURCE_NAME }.{ METHOD_NAME }
Every resource method accepts an optional callback as the last argument:
fusebill.customers.create(
{ primaryEmail: 'customer@example.com' },
function(err, customer) {
err; // null if no error occurred
customer; // the created customer object
}
);
Additionally, every resource method returns a promise, so you don't have to use the regular callback. E.g.
// Create a new customer and then a new charge for that customer:
fusebill.customers.create({
primaryEmail: 'foo-customer@example.com'
}).then(function(customer) {
return fusebill.subscription.create({
customerId: customer.id,
planFrequencyId: 9999
});
}).then(function(charge) {
// New charge created on a new customer
}).catch(function(err) {
// Deal with an error
});
To use the Fusebill-Account
header, simply pass an extra options hash:
// Retrieve the balance for a connected account:
fusebill.balance.retrieve({
fusebill_account: "acct_foo"
}).then(function(balance) {
// The balance object for the connected account
}).catch(function(err) {
// Error
});
STILL A WORK IN PROGRESS
Where you see params
it is a plain JavaScript object, e.g. { email: 'foo@example.com' }
create(params)
list([params])
update(customerId[, params])
retrieve(customerId)
listSubscriptions(customerId)
listEmailPreferences(customerId)
listInvoices(customerId)
listDraftInvoices(customerId)
activate(customerId)
retrieve(customerId)
retrieve(invoiceId)
retrievePdf(invoiceId)
list([params])
retrieve(planId)
listProducts(planId)
retrieveProducts(planId)
list([params])
retrieve(productId)
create(params)
list([params])
update(subscriptionID[, params])
retrieve(subscriptionId)
del(subscriptionId)
activate(subscriptionId)
fusebill.setApiKey(' your secret api key ');
fusebill.setTimeout(20000); // in ms
(default is node's default: 120000ms
)npm
:$ npm install
$ npm test
If you wish, you may run tests using your Fusebill Test API key by setting the environment variable STRIPE_TEST_API_KEY
before running tests:
$ export FUSEBILL_TEST_API_KEY='sk_test....'
$ npm test
Note: On Windows use SET
instead of export
for setting the FUSEBILL_TEST_API_KEY
environment variable.
Originally by Ask Bjørn Hansen (ask@develooper.com). Development was sponsored by YellowBot. Adapted for Fusebill by Justin Hamade
FAQs
Fusebill API wrapper
We found that fusebill demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.