Specifics with API?

0 views
Skip to first unread message

Josh

unread,
Jun 17, 2008, 7:23:26 PM6/17/08
to Digg API
I know a bit of javascript/php/xml, but I have never worked with an
API before and I have no clue where to start.

I'm currently looking to make my own javascript digg badge, using my
own images instead of the usual (to make it fit with my layout). Can
anyone give me the code to get the number of diggs for a certain
article, specified by URL? I'm confused as to which endpoint to use -
do I just use /stories and then specify link? Is there anyway to
specify a callback function?

Help would be greatly appreciated!

Steve Williams

unread,
Jun 17, 2008, 7:47:33 PM6/17/08
to dig...@googlegroups.com
At 04:23 PM 6/17/2008, Josh wrote:
>I'm currently looking to make my own javascript digg badge, using my
>own images instead of the usual ...

You may not need the API to do that. You can do a certain amount of
formatting with the "Digg This" button:

http://digg.com/tools/integrate

>Can anyone give me the code to get the number of diggs for a certain

>article, specified by URL? ... do I just use /stories and then specify link?

Yep.

>Is there anyway to specify a callback function?

Yep. See the Javascript Response Type:

http://apidoc.digg.com/ResponseTypes#Javascript

Reply all
Reply to author
Forward
0 new messages