lmsasu
lmsasu

Reputation: 7583

Delicious API replies with "access denied"

I'm trying to access all posts from delicious, according to delicious API. In Ubuntu Linux i give the command:

curl https://myusername:[email protected]/v1/posts/all

where myusername and mypassword are registered with an yahoo mail account. I get the answer:

    <?xml version="1.0" standalone="yes"?>
<result code="access denied" />
<!-- fe07.feeds.del.ac4.yahoo.net uncompressed/chunked Mon Nov  9 13:06:28 PST 2009 -->

What's wrong?

Upvotes: 0

Views: 721

Answers (2)

Stephen Darlington
Stephen Darlington

Reputation: 52565

If you're registered with a Yahoo! ID, you need to use OAuth rather than basic authentication.

Unfortunately, using command-line tools like this is considerably harder with OAuth. Last I checked there wasn't a simple way to do it.

Upvotes: 2

kafuchau
kafuchau

Reputation: 5593

What exactly is the status code you get? Code 999? If so, that's Yahoo's default status code for throttling your requests, i.e. you're trying to pull your posts too often. I've noticed that if you make the /posts/all call too often (more than once every few minutes), you'll get throttled.

If you don't need to get ALL of your posts, you should try using the /v1/posts/recent call with whatever options you may want. That seems to work for me. Yahoo/Delicious doesn't throttle that request.

Upvotes: 1

Related Questions