Qhub API Test

By 26 Feb 2010 | Comment
This is a demonstration of the Qhub API (see qhub.com/api for more details).

Once I got my API key, all I had to do was run this code:

require_once('functions/class.qhub.php'); $qhub = new qhub('myhub','myid','mypass','mykey'); $result = $qhub->request('/questions.xml?tags[]=domain&tags[]=hosting&tags[]=swinny'); print "<pre>".htmlspecialchars($result)."</pre>";
And here's the output!
<?xml version="1.0"?>
<response status="fail">qa.swinny.net Does Not Exist</response>


Comments

It's quiet in here...Add your comment

Recent Updates:

09 Feb : Solar PV Readings for Cherwell, east-facing
09 Feb : Solar PV Readings for Cherwell, South-facing
04 Feb : Dodgy connection? Don't just blame your ISP
01 Feb : Cold weather alerts: be prepared!
29 Jan : How to make a cat tree
27 Jan : Be careful what you view on Facebook
26 Jan : Kittens in pose mode
25 Jan : Let the kittens play!
24 Jan : 22 January 2012: Mistley Cross
09 Feb : My Solar PV
04 Feb : About Us: Julii & John Swindells
04 Feb : Internet Access
01 Feb : Domestic Heating Oil Prices: Know the Market!
29 Jan : Cats
27 Jan : The Social Web
24 Jan : Cycling
25 Nov : Piano for the Amateur
14 Nov : Measure
02 Nov : Book Reviews

Popular Searches: