Login

Account
Remember me?

Register!
Forgot password?

Ads

Your link here?

News

Some WebAPI changes

Posted on 22nd January 2007, 18:52:59

The URL + content of the WebAPI XML stats you can retrieve has changed a bit.

The new URL would be: http://whatpulse.org/api/user.php?UserID=1 - this holds the same information, only the miles are added. This way is also only cached for 1 hour, instead of the 6 on the old URL.

Generation of the stats used to sometimes stop, when the memory of the server run out, because all XML files are generated at the same time. With this new script, that can't happen as well.

The old files will be around for a while, so there's no hurry in modifying your scripts. (unless you really really want your miles ;-) ).

Add your own Comment

Comments

  1. [#WP]MrBondt posted on
    #1
    23 January 2007 at 20:27:58

    Is the xml for the teams changed too?
    Edit: Nevermind, found it already ;)
    http://whatpulse.org/api/team.php?TeamID=1295

    Great update :D

    Edit: maybe you should add a
    header('Content-type: text/xml');
    because it looks funny now in Fx (and others things may break as well)

  2. Fr3d. posted on
    #2
    24 January 2007 at 04:46:42

    I concur with MrBondt - please add the content-type header :)

    I've been waiting for miles for a while, so thanks a lot :D

  3. wasted posted on
    #3
    24 January 2007 at 20:06:38

    Done.

    [edit] [del]

  4. Hamlin posted on
    #4
    25 February 2007 at 21:16:29

    how do u make a team and be on an other team at the same time if not possible please say so

  5. drdamour posted on
    #5
    06 March 2007 at 03:45:08

    still think it'd be better to generate on pulse: http://forums.whatpulse.org/showthread.php?p=17475

  6. mariyo posted on
    #6
    15 April 2007 at 05:43:48

    Ehm.. You should edit the WebAPI scripts now. Else they will probably not work when you remove the std xml-files..
    Because in the WebAPI script files you, as you probably know, still use the xml-files instead of the new php-system ;)