Digg Short URLs: Access Long URL

0 views
Skip to first unread message

King Kovifor

unread,
Jun 28, 2009, 8:53:22 PM6/28/09
to Digg API
OK, so the digg API allows me to shorten a URL. After searching, I
figured I needed to set the user_client for access to the file. But,
now that I got shortening of URLs to work, I'm attempting to EXTRACT
the information of the short URL. I haven't attempted anything except
using my class (same as the shortening) to create the URL that I'd be
using and access it manually through my web browser. No matter how
many times I try (I tried several URL schemas) I get an "app key
required" message. Here's the latest URL:

http://services.digg.com/url/short/url=http%3A%2F%2Fdigg.com%2Fd12BRu&appkey=http%3A%2F%2Fwww.smnlikdat.org

Help?

Steve Williams

unread,
Jun 29, 2009, 6:28:26 AM6/29/09
to dig...@googlegroups.com
At 05:53 PM 6/28/2009, King Kovifor wrote:
>I get an "app key required" message. Here's the latest URL:
>
>.../url/short/url=...&appkey=...

You're missing the question mark before the query string
arguments. It should be:

.../url/short/?url=...&appkey=...

King Kovifor

unread,
Jun 29, 2009, 11:09:56 AM6/29/09
to Digg API
I tried that. It sadly gives me the error of "404 Not Found". So I'm
at a loss either way... Any other ideas?

Steve Williams

unread,
Jun 29, 2009, 2:04:20 PM6/29/09
to dig...@googlegroups.com
At 08:09 AM 6/29/2009, King Kovifor wrote:
>I tried that. It sadly gives me the error of "404 Not Found".

Yes, sorry, I got it wrong in my reply.

That endpoint doesn't take a "url" argument. Rather, the path part
of the Digg short URL is the last term in the endpoint path. So the
correct request is:

http://services.digg.com/url/short/d12BRu?appkey=http%3A%2F%2Fwww.smnlikdat.org

That is, the endpoint is:

/url/short/d12BRu

King Kovifor

unread,
Jun 29, 2009, 3:36:33 PM6/29/09
to Digg API
I see! Thanks a lot! Might I suggest explaining that a bit better
within your API Docs?

On Jun 29, 2:04 pm, Steve Williams <s...@digg.com> wrote:
> At 08:09 AM 6/29/2009, King Kovifor wrote:
>
> >I tried that. It sadly gives me the error of "404 Not Found".
>
> Yes, sorry, I got it wrong in my reply.
>
> That endpoint doesn't take a "url" argument.  Rather, the path part
> of the Digg short URL is the last term in the endpoint path.  So the
> correct request is:
>
> http://services.digg.com/url/short/d12BRu?appkey=http%3A%2F%2Fwww.smn...

Steve Williams

unread,
Jun 29, 2009, 4:21:45 PM6/29/09
to dig...@googlegroups.com, Digg API

>Might I suggest explaining that a bit better within your API Docs?

Yeah, and an example wouldn't hurt. Sorry for the confusion.

Reply all
Reply to author
Forward
0 new messages