Permalink
Browse files

added how-to for class method.

  • Loading branch information...
1 parent 823fe14 commit 0f973142be9ff16d6970c3283971cde92a3edebf @stim371 committed Mar 7, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 README.md
View
11 README.md
@@ -29,6 +29,17 @@ require 'uncoil'
```
## Usage
+
+### One-off Calls
+If you want to just make a single call, give this a try:
+
+```ruby
+Uncoil.expand('http://bit.ly/2EEjBl') # => <Uncoil::Response:0x00000100a0d948 @long_url="http://www.cnn.com/" @short_url="http://bit.ly/2EEjBl" @error=nil>
+```
+
+### Creating an Instance
+If you need to make repeated calls or would like to access the bitly api, you need to create an instance.
+
* If you have Bitly login credentials, use them to create a new instance:
```ruby

0 comments on commit 0f97314

Please sign in to comment.