New Method and Output Format

1 view
Skip to first unread message

Pierre Far

unread,
Jan 8, 2009, 3:56:20 PM1/8/09
to Cli.gs Interested
All

Two new API additions hot off the press for the V2.

1. Serialized PHP output. Adding to XML, JSON, HTML, text, you can now
specify output=php to get serialized PHP output.

2. New API method: /api/v2/cligs/allcligsfor . This method will return
all cligs associated with either a user or a destination URL. At the
moment, only the destination URL functionality works; the user data
will come later. You do not need an API key to access the destination
URL clig list. An example, to see all cligs pointing to http://cli.gs/
:

http://cli.gs/api/v2/cligs/allcligsfor?output=php&destination=http://cli.gs/

This outputs serialized PHP. For XML:

http://cli.gs/api/v2/cligs/allcligsfor?output=xml&destination=http://cli.gs/

3. Bonus: Speaking of which, the XML output is now working much better
than it used to.

Like everything in V2, this is for beta testing. Let me know how it's
working or how you've broken it please :)

Thanks,
Pierre
Reply all
Reply to author
Forward
0 new messages