You need to send parameters to http://fun.ly/yourls-api.php either via GET or POST. These parameters are:
username / password pair, (Default username/password for Fun.ly is admin/123abc)action: "shorturl" (get short URL for a link), "expand" (get long URL of a shorturl), "url-stats" (get stats about one short URL) or "stats" (get stats about your links)url to shortenusercode Your Funly Cash Usercode (If you want to create a Fun.ly Cash URL)keyword for custom short URLsformat: either "json", "xml" or "simple"<result> <url> <id>62019439011</id> <keyword>shorter</keyword> <url>http://somereallylongurlyouneedtoshrink.com/</url> <date>2009-06-23 18:08:07</date> <ip>127.0.0.1</ip> </url> <status>success</status> <message>http://somereallylongurlyouneedtoshrink.com/ (ID: shorter) added to database</message> <shorturl>http://fun.ly/shorter</shorturl> </result>
There's a sample file included that serves as an example on how to play with the API
ksaver over at SNIPPLR has been kind enough to provide everyone with a python example, FUN.PY: SHORT A URL FROM COMMAND LINE, USING FUN.LY SERVICE