Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

del.icio.us API parameter values with spaces #10

Open
floehopper opened this issue Jan 10, 2010 · 1 comment
Open

del.icio.us API parameter values with spaces #10

floehopper opened this issue Jan 10, 2010 · 1 comment

Comments

@floehopper
Copy link

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.

@floehopper
Copy link
Author

I think I've worked it out. It looks like OAuth gem is escaping a space character as "%20" when generating the signature. But I was escaping a space character as "+" and this seems to upset the signature checking. Cheers, James.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant