Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm developing a Perl module to work with the UbuntuOne's API.

1) I'm able to retrieve the Name, Consumer key, Consumer Secret, Token and Token secret values using the basic HTTP authentication and JSON parser.

2) With these data, the api-doc says that I should do a GET to https://one.ubuntu.com/oauth/sso-finished-so-get-tokens/

I get:

ok 0/20

Anybody knows what it means?

3) Finally, when I try to use the API I receive a HTTP/1.1 401 UNAUTHORIZED :-(

Any ideas?

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

After hours fighting with ubuntu one. Here are the answers:

1) 0/20 means 0 valid Tokens. Although the process is correct, UbuntuOne is not able to validate your conection to the API.

2) During the basic authentication, the parameters are:

  • ws.op=authentication
  • token_name=Ubuntu One @ something

Caution: The token_name should be exactly (capital letters, spaces, etc).

share|improve this answer
    
Ok, the first super-basic but functional module is ready at github.com/xpeco/UbuntuOne –  user121953 Jan 16 '13 at 12:25
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.