Permalink
Browse files

document custom headers

  • Loading branch information...
1 parent 7e92d4a commit cd42acbe1c42237a175a2124d0eb0fab388dc82d @csquared csquared committed Dec 12, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 README.md
View
@@ -16,6 +16,7 @@ Start by creating a connection to Heroku with your credentials:
heroku = Heroku::API.new(:api_key => API_KEY) # use API Key
heroku = Heroku::API.new(:username => USERNAME, :password => PASSWORD) # use username and password
+ heroku = Heroku::API.new(:headers => {'User-Agent' => 'custom'}) # use custom header
NOTE: You can leave out the `:api_key` if `ENV['HEROKU_API_KEY']` is set instead.

0 comments on commit cd42acb

Please sign in to comment.