Hyves (the #1 social network in The Netherlands) released their API v1.0 a few weeks ago. We already created some kind of Ruby wrapper some time ago (for the old API), but now we have a (very quickly created) wrapper for v1.0.
It works as follows:
1 2 3 4 5 6 7 8 9 10 | require 'hyves_api/hyves_api' # You need to apply for a key via http://www.hyves.nl/api/apply/ key = 'key' # Your key here secret = 'secret' # Your secret here h = Hyves.new(key, secret) # Go and login on the following URL h.authorize_url('http://your_return_url/') h.get_access_token h.users_getByUsername(:username => 'claude') |
For more info about the Hyves API check their Trac. Download our Ruby Hyves API wrapper here. Make sure you read the README for info! We’ll try to put it in a public SVN sometime soon.
Subscribe to our RSS feed
Hi there!
Everytime I start webrick server I always get this error at http://localhost:3000/hyves :
HyvesException in HyvesController#index
Unknown parameter(s) given.
Unknown parameters: oauth_callback (error_code: 14)
/Users/ferqwerty/Desktop/hyves/vendor/hyves_api/lib/oauth_hacks.rb:57:in `request’
/Users/ferqwerty/Desktop/hyves/vendor/hyves_api/lib/oauth_hacks.rb:43:in `token_request’
…
I think I’m using the correct API keys (also using the same at a hyve api’s php test and working fine).
What am i doing wrong? Could you help me be uncrazy with this, please?
Nice blog!
I’m not sure. Maybe try installing an old(er) version of the OAuth gem (v0.2.2). I put the Hyves API stuff on GitHub, see: http://blog.joopp.com/2009/07/09/hyves-api-wrapper-put-on-github/