diff --git a/README.md b/README.md index 41cc3552..eb55f720 100644 --- a/README.md +++ b/README.md @@ -148,8 +148,9 @@ api_token = API_TOKEN_OBTAINED_FROM_JIRA_UI options = { :site => 'http://mydomain.atlassian.net:443/', :context_path => '', - :auth_type => :basic, - :default_headers => { 'Authorization' => "Bearer #{api_token}"} + :username => '', + :password => api_token, + :auth_type => :basic } client = JIRA::Client.new(options)