Skip to content

Commit

Permalink
Updates README
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Corsaro committed Jun 22, 2011
1 parent a0e7f5b commit 5d04ed8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.rdoc
Expand Up @@ -45,11 +45,11 @@ You can find rdocs at http://rubydoc.info/github/embedly/embedly-ruby/master/fra
json_obj = JSON.pretty_generate(objs.collect{|o| o.marshal_dump})
puts json_obj

# call pro with key (you'll need a real key)
embedly_pro = Embedly::API.new :key => 'xxxxxxxxxxxxxxxxxxxxxxxxxx',
# call api with key (you'll need a real key)
embedly_api = Embedly::API.new :key => 'xxxxxxxxxxxxxxxxxxxxxxxxxx',
:user_agent => 'Mozilla/5.0 (compatible; mytestapp/1.0; my@email.com)'
url = 'http://www.guardian.co.uk/media/2011/jan/21/andy-coulson-phone-hacking-statement'
obj = embedly_pro.preview :url => url
obj = embedly_api.preview :url => url
puts JSON.pretty_generate(obj[0].marshal_dump)

== Testing
Expand All @@ -58,7 +58,7 @@ You can find rdocs at http://rubydoc.info/github/embedly/embedly-ruby/master/fra
rake rspec
rake features # if it complains of missing deps install them

Some tests will fail due to missing pro key. Set the EMBEDLY_KEY environmental
Some tests will fail due to missing api key. Set the EMBEDLY_KEY environmental
variable with your key to get them to pass.

EMBEDLY_KEY=xxxxxxxxxxxxx rake features
Expand Down

0 comments on commit 5d04ed8

Please sign in to comment.