I've successfully got OAuth working with the del.icio.us API, but it doesn't seem to work when I have parameters including spaces.
This works :-
url = "http://api.del.icio.us/v2/posts/get?tag=ruby"
puts access_token.get(url).body
But this fails with a "signature_invalid" error :-
url = "http://api.del.icio.us/v2/posts/get?tag=ruby+oauth"
puts access_token.get(url).body
I'll try and narrow this down further, but I'd be grateful if you could tell me whether there is anything obvious I might be doing wrong.
Thanks, James.
I've successfully got OAuth working with the del.icio.us API, but it doesn't seem to work when I have parameters including spaces.
This works :-
url = "http://api.del.icio.us/v2/posts/get?tag=ruby"
puts access_token.get(url).body
But this fails with a "signature_invalid" error :-
url = "http://api.del.icio.us/v2/posts/get?tag=ruby+oauth"
puts access_token.get(url).body
I'll try and narrow this down further, but I'd be grateful if you could tell me whether there is anything obvious I might be doing wrong.
Thanks, James.