Skip to content

Commit

Permalink
Update README.md to include example for OAuth2
Browse files Browse the repository at this point in the history
Couldn't figure out how to authenticate with OAuth2 until I found this comment in the issues: bitbucket-rest-api#62 (comment) . This example should help with that.
  • Loading branch information
ibrahima authored Nov 16, 2016
1 parent e03b693 commit 248709a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ At this stage you can also supply various configuration parameters, such as `:us
bitbucket = BitBucket.new oauth_token: 'request_token', oauth_secret: 'request_secret'
```

or for OAuth2:

```ruby
bitbucket = BitBucket.new new_access_token: 'oauth2_access_token'
```

Alternatively, you can configure the BitBucket settings by passing a block:

```ruby
Expand Down

0 comments on commit 248709a

Please sign in to comment.