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:

19 May : Heating Oil Thefts - Stay Alert!
19 May : Pro Blaze Overshoes pass the test
15 May : Get a CentOS Server Web-Ready
13 May : Keeping your iPhone secure
06 May : Nero, Claudius and a rather dead mouse
19 May : Domestic Heating Oil Prices: Know the Market!
19 May : Sports Gear: Under Test
15 May : Rackspace Cloud Hosting
13 May : iPhone 4
06 May : Cats
19 Mar : Time Trial Results
25 Nov : Piano for the Amateur
14 Nov : Measure
02 Nov : Book Reviews
12 Oct : Simple Programming Exercises

Popular Searches: