Skip to content

Commit

Permalink
Fetch all paymentTemplates for logged user.
Browse files Browse the repository at this point in the history
This method uses '__SELF__' to specify the logged user.
  • Loading branch information
caike committed Nov 6, 2012
1 parent 68898ac commit d886425
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/etsy/payment_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,15 @@ def self.find_by_user(user, credentials = {})
}
get("/users/#{user.id}/payments/templates", options)
end

def self.find_all_by_user(credentials = {})
options = {
:access_token => credentials[:access_token],
:access_secret => credentials[:access_secret],
:require_secure => true
}
get("/users/__SELF__/payments/templates", options)
end

end
end

0 comments on commit d886425

Please sign in to comment.