Skip to content

Commit

Permalink
Add usage instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Brice Sanchez committed May 26, 2016
1 parent 9e5e194 commit 266f585
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,22 @@ Or install it yourself as:

## Usage

TODO: Write usage instructions here
Configure a connection to the API:

```ruby
Refinery::API.configure do |conf|
conf.api_token = "123"
conf.api_url = "http://localhost:3000"
conf.api_path = "/api/v1"
end
```

Make your first call:

```ruby
client = Refinery::API::Pages.new
pages = client.index.body
```

## Development

Expand Down

0 comments on commit 266f585

Please sign in to comment.