PW Forum / Can't open Digg URL

You are not logged in.

#1 2007-11-02 19:05:00

New member
Registered: 2007-11-02
Posts: 2

Can't open Digg URL

I'm practicing using multiple API libraries. You can see my current progress here:

I am having trouple with the Digg API. Scroll to the bottom of that page to see. It says that this URL cannot be opened: … _date-desc

However, when I copy and paste that URL into a web browser, I can see the XML just fine. Is my format wrong?

This is my code. I have almost identical functions in all my other API's libraries.  But it doesn't work in my Digg library. I am using an XML class/parser from here:

function storySearch($topic, $count)
        $count = $this->constrainCount($count);

        $url = $this->baseURL . 'stories/topic/' .
                         $topic . '?' .
                         'appkey=' . $this->keyAPI .
                         '&count=' . $count .

        echo $url . '<br />';

        // line causing the error, any line after this
        // does not get executed.
        $feed = new XML($url);

Last edited by TokyoTech (2007-11-02 19:10:08)



Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

Follow the PW team on Twitter

APIs, mashups and code. Because the world's your programmable oyster.

John Musser
Founder, ProgrammableWeb

Adam DuVander
Executive Editor, ProgrammableWeb. Author, Map Scripting 101. Lover, APIs.