Programmatically submit a story

23 views
Skip to first unread message

Mike

unread,
Oct 5, 2009, 5:03:43 PM10/5/09
to Digg API
Hi,
I'm relatively new to Digg, and I wondered if there is a way to
submit a story programmatically, i.e with a single URL that packs all
the parameters needed.
Does anyone know if this is possible, if is so, how?
Thanks.
-Mike

Steve Williams

unread,
Oct 5, 2009, 6:04:32 PM10/5/09
to dig...@googlegroups.com
At 02:03 PM 10/5/2009, Mike wrote:
>I wondered if there is a way to submit a story programmatically ...

Not yet through the API. We're working on OAuth support to provide
submission, digging, and so on.

>... i.e with a single URL that packs all the parameters needed.

Well, now, that sounds a lot like the submit link used by the "Digg
This" button (which is not part of the API):

http://digg.com/tools/integrate

But note "Digg This" requires user interaction. Fully-automated
submission isn't offerred.

Mike

unread,
Oct 6, 2009, 1:28:18 PM10/6/09
to Digg API
Hi Steve,
I'm trying to implement a Digg Share button in an iPhone app. My
understanding of what's possible is now:
1. I send a URL to http://digg.com/submit?url= < myInterestingURL >
2. User is presented a web page, and challenged to log in.
3. Assuming story is not yet dugg, user is prompted for title and
description, and can then post their story.

So the only thing I can do from the iPhone is send the initial URL.
Is that correct?

Are there any plans for supporting this type of submission
programmatically any time soon?

Thanks for your help.
-Mike

Steve Williams

unread,
Oct 6, 2009, 8:52:13 PM10/6/09
to dig...@googlegroups.com, Digg API
At 10:28 AM 10/6/2009, Mike wrote:
>So the only thing I can do from the iPhone is send the initial URL.
>Is that correct?

Your description of the flow is accurate, yes.

Lots of web sites, including big mainstream media sites, use "Digg
This" buttons that submit via that mechanism, because the button
really increases the number of their stories submitted to Digg, which
gets them more engagement and traffic. And we like it, too!

But it's important to note that the submissions come from the
users. Digg doesn't support submission without that user interaction.

>Are there any plans for supporting this type of submission
>programmatically any time soon?

As I said earlier:

Jacob Gube

unread,
Oct 10, 2009, 12:03:01 PM10/10/09
to Digg API
> Not yet through the API. We're working on OAuth support to provide
> submission, digging, and so on.

What will you do to prevent abuse, i.e. hammering a website for
updates, then auto-submitting all their content to Digg with a script?

On Oct 5, 6:04 pm, Steve Williams <s...@digg.com> wrote:
> At 02:03 PM 10/5/2009, Mike wrote:
>
> >I wondered if there is a way to submit a story programmatically ...
>

>

Jeff Hodsdon

unread,
Oct 10, 2009, 12:15:29 PM10/10/09
to dig...@googlegroups.com
>> Not yet through the API. We're working on OAuth support to provide
>> submission, digging, and so on.
>
> What will you do to prevent abuse, i.e. hammering a website for
> updates, then auto-submitting all their content to Digg with a script?

That is an issue that we are looking to solve, especially how
duplicate stories are prevented. Submission via the API will not be
going out with the launch of OAuth and writable endpoints.

Elliott

unread,
Nov 6, 2009, 9:44:27 AM11/6/09
to Digg API
Ok, so for now the only way to submit an article to digg is by using:
http://digg.com/submit?url= < myInterestingURL >.

Is there a way to replicate this on mobile? Mobile users are
increasing, and I would like mobile users of my sites to be able to
digg articles.

Any help would be much appreciated.

Steve Williams

unread,
Nov 6, 2009, 12:13:26 PM11/6/09
to dig...@googlegroups.com
At 06:44 AM 11/6/2009, Elliott wrote:
>Is there a way to replicate this on mobile?

Not right now.

>... I would like mobile users of my sites to be able to digg articles.

Well, your mobile visitors can digg stories through Digg's mobile
site, but only if the item has already been submitted. Add "m." to
the start of the permalink URL to link to the story on Digg. Example:

http://m.digg.com/health/Can_Humans_Infect_Pets_With_H1N1

Digg users can log in and digg stories there.

You can use the Digg API to find out whether the story has been
submitted. That's how this "Digg This" button example works:

http://www.sbw.org/diggthis/

That example uses client-side Javascript, but you can still use that
approach on the server side to support mobile devices without Javascript.

Reply all
Reply to author
Forward
0 new messages