Documentation

story.getAll

This API method is deprecated, not supported and may be removed at any time. Please use Version 2.0 API methods.
  • http://services.digg.com/1.0/endpoint?method=story.getAllstory.getAll

Description

  • Get all stories, optionally narrow down the results with specific arguments.

Arguments

NameTypeDescription
containerstringContainer's short_name such as 'technology' (see container.getAll) (optional)
countintCount of how many items to have in the response (optional)
domainstringA domain such as digg.com (optional)
linkstringURL that links to an article/story (optional)
link_hashstringMD5 of a url (optional)
max_datetimestampMaximum date represented as a unix timestamp (optional)
max_promote_datestringMaximum promotion date represented as a unix timestamp (optional)
medialistList or single medium name. Possible values include news, videos, and images. Default is all. (optional)
min_datetimestamp Min date represented as a unix timestamp (optional)
min_promote_datetimestampMin promotion date represented as unix timestamp (optional)
offsetintPagination offset (optional)
sizestringThumbnail size. ('t' = Thumbnail, 80x80 pixels. 'a' = Sized as for user profile history pages, 30x30 pixels. 's' = Small, 48x48 pixels. 'm' = Medium 120x120 pixels. 'l' = Large, 160x160 pixels. 'p' = Sized as for permalink pages, max 160 pixels in height or width, aspect ratio preserved.) (optional)
sortstringSort result. Possible values promote_date-desc, promote_date-asc, submit_date-desc, submit_date-asc, digg_count-desc, digg_count-asc, date-desc, date-asc. Not all sort options are available on each endpoint. (optional)
story_idslistList of comma separated story IDs (optional)
topicstringTopic's short_name name such as 'apple' (see topic.getAll) (optional)

HTTP Method

  • GET

Errors

  • 500 Invalid title
  • 1001 Unrecognized argument
  • 1002 A Digg API request is missing the callback argument
  • 1003 A Digg API request has an invalid callback argument
  • 1029 HTTP User-Agent header required
  • 1030 Invalid argument value
  • 1050 API request is missing an argument(s)

Examples

require_once 'Services/Digg2.php';
 
$sd = new Services_Digg2;
 
try {
    $stories = $sd->story->getAll()->stories;
    foreach ($stories as $story) {
        echo "Story title: " . $story->title . "<br />\n";
    }
} catch (Services_Digg2_Exception $e) {
    echo "Getting stories failed because " . $e->getMessage();
}

Examples

<?xml version="1.0" encoding="utf-8"?>
<stories timestamp="1256173722" min_date="1253581710" total="108661" offset="0" count="10">
  <story link="http://www.secondoprotocollo.org/index.php?option=com_content&amp;task=view&amp;id=1848&amp;Itemid=1" submit_date="1256194792" diggs="2" id="13088289" comments="0" href="/world_news/Iran_fronte_riformista_spaccato_Un_vantaggio_per_Ahmadinej" promote_date="1256248231" status="popular" media="news">
    <description>Le elezioni in Iran si avvicinano a grandi passi. Ieri sera c'è stato il primo confronto televisivo tra Ahmadinejad e Mir-Hossein Mousavi, uno dei due candidati riformisti alla presidenza dell'Iran, l'altro è Mehdi Karroubi. Ebbene, si è avuta la netta impressione che Ahmadinejad abbia vinto con netto vantaggio questo primo match. </description>
    <title>Iran: fronte riformista spaccato. Un vantaggio per Ahmadinej</title>
    <user name="secondoprotocol" registered="1190376078" profileviews="0" fullname="franco londei" icon="/users/secondoprotocol/s.png"/>
    <topic name="World News" short_name="world_news" abbr="World News"/>
    <container name="World &amp; Business" short_name="world_business" abbr="World &amp; Business"/>
    <shorturl short_url="http://digg.com/d3surR" view_count="0"/>
  </story>
  <story link="http://www.tasteefusjon.com/news/news.aspx" submit_date="1256194789" diggs="1" id="13088288" comments="0" href="/food_drink/Efusjon_Facebook_Linkdin_Blogs_OH_MY" status="upcoming" media="news">
    <description>With efusjon spreading like wild fire, and July's MASSIVE facebook launch it has been hard keeping up with everything new coming out.</description>
    <title>Efusjon, Facebook, Linkdin, Blogs! OH MY!</title>
    <user name="powerbyefusjon" registered="1243975302" profileviews="0" fullname="Joshua Christensen" icon="/users/powerbyefusjon/s.png"/>
    <topic name="Food &amp; Drink" short_name="food_drink" abbr="Food &amp; Drink"/>
    <container name="Lifestyle" short_name="lifestyle" abbr="Lifestyle"/>
    <shorturl short_url="http://digg.com/d3surQ" view_count="0"/>
  </story>
  <story link="http://jjlmblog.typepad.com/3minutebiblestudy/2009/06/aag-bsp-094-revelation-1136.html" submit_date="1256194784" diggs="1" id="13088286" comments="0" href="/educational/AAG_BSP_094_Revelation_11_3_6" status="upcoming" media="news">
    <description>The purpose of this Bible Study is to offer a Unique, Interesting and Fun way to study the Bible. Our goal is to provide everyone with a detailed, step by step, verse by verse Bible study. I think the best part of the study is that it will be interactive. YOU get to ask the questions and give the answers too.</description>
    <title>AAG BSP #094 Revelation 11:3-6</title>
    <user name="rev5196" registered="1177912151" profileviews="0" fullname="Pastor Jeff Lilley" icon="/users/rev5196/s.png"/>
    <topic name="Educational" short_name="educational" abbr="Educational"/>
    <container name="Lifestyle" short_name="lifestyle" abbr="Lifestyle"/>
    <thumbnail originalwidth="120" originalheight="255" contentType="image/png" src="/educational/AAG_BSP_094_Revelation_11_3_6/t.png" width="80" height="80"/>
    <shorturl short_url="http://digg.com/d3surO" view_count="0"/>
  </story>
  <story link="http://www.mobilewhack.com/microsoft-releases-first-bing-tv-ad/" submit_date="1256194779" diggs="1" id="13088285" comments="0" href="/tech_news/Microsoft_releases_first_Bing_TV_ad" status="upcoming" media="news">
    <description>Microsoft has been known for some colorful TV advertisements, especially those garnered towards Vista, but I think they are really onto something with the above Bing ad.</description>
    <title>Microsoft releases first Bing TV ad</title>
    <user name="mobilewhackcom" registered="1235891593" profileviews="0" fullname="MobileWhack" icon="/users/mobilewhackcom/s.png"/>
    <topic name="Tech Industry News" short_name="tech_news" abbr="Industry News"/>
    <container name="Technology" short_name="technology" abbr="Technology"/>
    <thumbnail originalwidth="160" originalheight="160" contentType="image/jpeg" src="/tech_news/Microsoft_releases_first_Bing_TV_ad/t.jpg" width="80" height="80"/>
    <shorturl short_url="http://digg.com/d3surN" view_count="0"/>
  </story>
  <story link="http://www.hydroasis.com/hy/items.aspx?id=417&amp;item=cloning-gel-&amp;-solutions" submit_date="1256194764" diggs="1" id="13088284" comments="0" href="/environment/Cloning_Gel_and_solutions" status="upcoming" media="news">
    <description>Cloaning Gel is a professional strength , easy and ready to use propogation gel and Cloning Solution is a nutrient and propogation liquid that promotes vigorous growth and rapid root development for all types of plants, flowers, fruits and vegetables. </description>
    <title>Cloning Gel and solutions</title>
    <user name="greengrower" registered="1206963553" profileviews="0" fullname="Diana parera" icon="/img/uds.png"/>
    <topic name="Environment" short_name="environment" abbr="Environment"/>
    <container name="Science" short_name="science" abbr="Science"/>
    <shorturl short_url="http://digg.com/d3surM" view_count="0"/>
  </story>
  <story link="http://horsjeu.net/transferts/les-rumeurs-et-transferts-de-ce-jeudi-4-juin/" submit_date="1256194759" diggs="6" id="13088283" comments="0" href="/soccer/Les_rumeurs_et_transferts_de_ce_jeudi_4_juin" status="upcoming" media="news">
    <description>Rumeurs Transferts football Jeudi 4 juin</description>
    <title>Les rumeurs et transferts de ce jeudi 4 juin</title>
    <user name="sidisidess" registered="1243179941" profileviews="0" fullname="Simon Descamps" icon="/img/uds.png"/>
    <topic name="Soccer" short_name="soccer" abbr="Soccer"/>
    <container name="Sports" short_name="sports" abbr="Sports"/>
    <shorturl short_url="http://digg.com/d3surL" view_count="0"/>
  </story>
  <story link="http://indiansinuk.net/index.php?/355-Red-Bull-high-on-cocaine-says-German-Govt.html" submit_date="1256194750" diggs="1" id="13088282" comments="0" href="/food_drink/Red_Bull_high_on_cocaine_says_German_Govt" status="upcoming" media="news">
    <description>The German states of Hesse and North-Rhine Westphalia have banned the sale of Red Bull after finding traces of cocaine during tests.</description>
    <title>Red Bull high on cocaine, says German Govt</title>
    <user name="phoenixgmn" registered="1225758836" profileviews="0" fullname="PhoenixGMN" icon="/img/uds.png"/>
    <topic name="Food &amp; Drink" short_name="food_drink" abbr="Food &amp; Drink"/>
    <container name="Lifestyle" short_name="lifestyle" abbr="Lifestyle"/>
    <shorturl short_url="http://digg.com/d3surK" view_count="0"/>
  </story>
  <story link="http://twtpoll.com/r/hvx4vu" submit_date="1256194747" diggs="1" id="13088281" comments="0" href="/software/twtpoll_Which_of_the_following_Content_Management_Systems" status="upcoming" media="news">
    <description>Take this poll:  wordpress, joomla!, drupal</description>
    <title>twtpoll :: Which of the following Content Management Systems</title>
    <user name="brookeschoenman" registered="1185832648" profileviews="0" icon="/users/brookeschoenman/s.png"/>
    <topic name="Software" short_name="software" abbr="Software"/>
    <container name="Technology" short_name="technology" abbr="Technology"/>
    <thumbnail originalwidth="257" originalheight="106" contentType="image/png" src="/software/twtpoll_Which_of_the_following_Content_Management_Systems/t.png" width="80" height="80"/>
    <shorturl short_url="http://digg.com/d3surJ" view_count="0"/>
  </story>
  <story link="http://www.youtube.com/watch?v=RTEUbtgpIgo" submit_date="1256194746" diggs="5" id="13088280" comments="0" href="/nintendo/DS_Game_Scribblenauts_God_Fights_A_Kraken" status="upcoming" media="videos">
    <description>5th Cell was showcasing a game at E3 where you solve puzzles by typing in anything you want. Anything. Here, you can see what happens when "God," a "Kraken," and "Einstein" get together. </description>
    <title>DS Game - Scribblenauts: God Fights A Kraken</title>
    <user name="rubixsqube" registered="1173071065" profileviews="0" icon="/img/uds.png"/>
    <topic name="Nintendo" short_name="nintendo" abbr="Nintendo"/>
    <container name="Gaming" short_name="gaming" abbr="Gaming"/>
    <thumbnail originalwidth="120" originalheight="90" contentType="image/jpeg" src="/nintendo/DS_Game_Scribblenauts_God_Fights_A_Kraken/t.jpg" width="80" height="80"/>
    <shorturl short_url="http://digg.com/d3surI" view_count="0"/>
  </story>
  <story link="http://www.ehow.com/how_5067608_use-wireless-bridge-sonicview-ihub.html" submit_date="1256194743" diggs="1" id="13088279" comments="0" href="/television/How_to_use_your_laptop_as_a_wireless_bridge_4_sonicview_ihub" status="upcoming" media="news">
    <description>This article explains how you can use your laptop to power your ihub. By Good FTA FILES, Good FTA KEYS and BIN FILES all the time.</description>
    <title>How to use your laptop as a wireless bridge 4 sonicview ihub</title>
    <user name="scatterprose" registered="1233385898" profileviews="0" icon="/img/uds.png"/>
    <topic name="Television" short_name="television" abbr="Television"/>
    <container name="Entertainment" short_name="entertainment" abbr="Entertainment"/>
    <thumbnail originalwidth="80" originalheight="72" contentType="image/jpeg" src="/television/How_to_use_your_laptop_as_a_wireless_bridge_4_sonicview_ihub/t.jpg" width="80" height="80"/>
    <shorturl short_url="http://digg.com/d3surH" view_count="0"/>
  </story>
</stories>