Permalink
Browse files

go

  • Loading branch information...
jamescarr committed Oct 8, 2010
1 parent 709a6e1 commit 0c87817fd043fadc4ab7c620938fc5c90fd087bf
Showing with 5 additions and 5 deletions.
  1. +5 −5 docs/chargify.md
View
@@ -12,16 +12,16 @@ This is a rough cut... hopefully the full API will be implemented soon! Let me k
var client = chargify.createClient({site:'yoursite', key:'api key', password:'password'})
## Creating a Customer
- client.customers.create(
- {first_name:'Joe', last_name:'Smokes', email:'joe_smokes@example.com'}
- ).on('success', function(resp){
+ client.customers.create(
+ {first_name:'Joe', last_name:'Smokes', email:'joe_smokes@example.com'}
+ ).on('success', function(resp){
// succeeded!
- }).on('failure', function(resp){
+ }).on('failure', function(resp){
// damn, failed. Take a look at resp.errors (an array)
resp.errors.forEach(function(err){
console.log("Error: " + err)
})
- })
+ })
## Creating a Subscription
client.subscriptions.create({

0 comments on commit 0c87817

Please sign in to comment.