{"id":87,"date":"2006-10-04T09:45:34","date_gmt":"2006-10-04T14:45:34","guid":{"rendered":"\/cgi\/wp\/?p=87"},"modified":"2006-10-04T09:45:34","modified_gmt":"2006-10-04T14:45:34","slug":"stickam-api-and-aspnet","status":"publish","type":"post","link":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/?p=87","title":{"rendered":"Stickam API and ASP.NET"},"content":{"rendered":"<p>I&#8217;ve been spending so much time chatting with YouTube celebrities on Stickam that I&#8217;ve decided to put the time to good use and do some programming with the Stickam API. The Stickam API allows you to determine if a user is online or live, i.e. hosting a webcam chat. <\/p>\n<p>The Stickam API returns XML in response to a request at a web address like <a href=\"http:\/\/www.stickam.com\/api\/user\/robrobbins\/profile\">http:\/\/www.stickam.com\/api\/user\/robrobbins\/profile<\/a>. <\/p>\n<p>I wrote an ASPX page in ASP.NET that gives me the status of four users. Unfortunately I could not extend it to handle more than four users due to the need to wait for the response. This project allowed me to learn a few new ASP.NET tricks. I learned how to use the HttpWebRequest class of the System.Net namespace to make a request to a web server and get the response. I also learned how to read through a XML document in order to get the value of a particular node. I had to play around with the syntax of a regular expression to remove some garbage at the end of the XML document. I&#8217;m not sure how the garbage wound up in the XML. The web response is being written into a buffer of 512 character bytes so the sample code I used must fail to clear the buffer properly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been spending so much time chatting with YouTube celebrities on Stickam that I&#8217;ve decided to put the time to good use and do some programming with the Stickam API. The Stickam API allows you to determine if a user &hellip; <a href=\"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/?p=87\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts\/87"}],"collection":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=87"}],"version-history":[{"count":0,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts\/87\/revisions"}],"wp:attachment":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}