List Media
Fetches a list of media available on Digg. For each medium, the short_name attribute may be one of the values to the media argument of a List Stories request.
Example Request
Retrieve all Digg media
http://services.digg.com/media?appkey=http%3A%2F%2Fapidoc.digg.com
Example Responses
XML
<?xml version="1.0" encoding="utf-8" ?>
<media timestamp="1196888458">
<medium name="News" short_name="news" />
<medium name="Videos" short_name="videos" />
<medium name="Images" short_name="images" />
</media>
JSON
{
"timestamp" : 1196888552,
"media" : [
{
"name" : "News",
"short_name" : "news"
},
{
"name" : "Videos",
"short_name" : "videos"
},
{
"name" : "Images",
"short_name" : "images"
}
]
}
PHP
O:12:"DiggAPIMedia":2:{s:9:"timestamp";i:1196888837;s:5:"media";a:3:{i:0;O:13:"DiggAPIMedium":2:{s:4:"name";s:4:"News";s:10:"short_name";s:4:"news";}i:1;O:13:"DiggAPIMedium":2:{s:4:"name";s:6:"Videos";s:10:"short_name";s:6:"videos";}i:2;O:13:"DiggAPIMedium":2:{s:4:"name";s:6:"Images";s:10:"short_name";s:6:"images";}}}
Endpoint
- GET /media
- Get a list of all media.
- GET /medium/{medium short_name}
- Get a specified medium.
Arguments
See ResponseTypes and ApplicationKeys.
Comments (0)
You don't have permission to comment on this page.