Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignacio Jonas committed Jan 7, 2016
1 parent 8379531 commit 6f1d788
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,35 +19,33 @@ gem 'auth0'

## Basic usage

Using [APIv1](https://auth0.com/docs/api)
Using [APIv2](https://auth0.com/docs/api/v2)

```ruby
require "auth0"

auth0 = Auth0Client.new(
:client_id => "YOUR CLIENT ID",
:client_secret => "YOUR CLIENT SECRET",
:token => "YOUR JWT HERE",
:domain => "<YOUR ACCOUNT>.auth0.com"
)

puts auth0.get_users
```

Using [APIv2](https://auth0.com/docs/apiv2)
Using [APIv1](https://auth0.com/docs/api/v1)

```ruby
require "auth0"

auth0 = Auth0Client.new(
:api_version => 2,
:token => "YOUR JWT HERE",
:client_id => "YOUR CLIENT ID",
:client_secret => "YOUR CLIENT SECRET",
:domain => "<YOUR ACCOUNT>.auth0.com"
)

puts auth0.get_users
```


## What is Auth0?

Auth0 helps you to:
Expand Down

0 comments on commit 6f1d788

Please sign in to comment.