Skip to content
Browse files

still learning github markdown

  • Loading branch information...
1 parent f517be7 commit 83b2ea73c1bd7e80168f7b33dc28878b90f45bde @hng committed
Showing with 6 additions and 3 deletions.
  1. +6 −3 README.md
View
9 README.md
@@ -10,18 +10,21 @@ Examples
--------
I'm currently exploring two API interfaces:
-````ruby
+
+```ruby
pinboard = Pinboard::Client.new(:username => 'foo', :password => 'bar')
posts = pinboard.posts
```
or:
-````ruby
+
+```ruby
posts = Pinboard::Post.all(:username => 'foo', :password => 'bar')
```
Both examples work.
Passing arguments: (works only for the Client API Interface)
-````ruby
+
+```ruby
pinboard.posts(:tag => 'ruby') #all posts tagged 'ruby'
pinboard.posts(:tag => 'ruby,pinboard') #all posts tagged 'ruby' and 'pinboard'
pinboard.posts(:start => 20) #starting on the 20th post

0 comments on commit 83b2ea7

Please sign in to comment.
Something went wrong with that request. Please try again.