Skip to content

Commit

Permalink
Document how to fetch the domains
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed Dec 16, 2015
1 parent 3fb1b43 commit 8904a99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@ This library is a Ruby client you can use to interact with the [DNSimple API v2]
```ruby
require 'dnsimple'

client = Dnsimple::Client.new(access_token: "a1b2c3")

# Fetch your user details

# List your domains
client.domains.list(1234) # => domains from the account 1234, first page
client.domains.list(1234, query: { page: 3 }) # => domains from the account 1234, third page
client.domains.all(1234) # => all domains from the account 1234 (use carefully)

# Create a domain

Expand Down

0 comments on commit 8904a99

Please sign in to comment.