{"id":744,"date":"2010-01-21T14:16:51","date_gmt":"2010-01-21T14:16:51","guid":{"rendered":"https:\/\/kweaver.org\/cs\/c-twitter-is-incredibly-easy\/"},"modified":"2010-01-21T14:16:51","modified_gmt":"2010-01-21T14:16:51","slug":"c-twitter-is-incredibly-easy","status":"publish","type":"post","link":"https:\/\/kweaver.org\/cs\/c-twitter-is-incredibly-easy\/","title":{"rendered":"C# + Twitter is incredibly easy"},"content":{"rendered":"<p>I just found the 52 weeks Coding Challenge by Dream in Code and decided to take some time I am supervising my students to try coing a Twitter program.<\/p>\n<p>So I&#39;ve created a little C# program that sends a direct message.<\/p>\n<p><a href=\"http:\/\/www.kweaver.org\/.a\/6a00e54eea8ed98834012876fc2ec9970c-pi\"><img decoding=\"async\" alt=\"1-21-2010 2-11-00 PM\" border=\"0\" class=\"asset asset-image at-xid-6a00e54eea8ed98834012876fc2ec9970c \" src=\"http:\/\/www.kweaver.org\/.a\/6a00e54eea8ed98834012876fc2ec9970c-800wi\" style=\"DISPLAY: block; MARGIN-LEFT: auto; MARGIN-RIGHT: auto\" title=\"1-21-2010 2-11-00 PM\" \/><\/a> <\/p>\n<p>I got the actual code from <a href=\"http:\/\/www.dreamincode.net\/code\/snippet4094.htm\">http:\/\/www.dreamincode.net\/code\/snippet4094.htm<\/a><\/p>\n<p>&#0160;and the idea from <a href=\"http:\/\/www.dreamincode.net\/forums\/showtopic150412.htm\">http:\/\/www.dreamincode.net\/forums\/showtopic150412.htm<\/a><\/p>\n<p>The implementation code is incredibly simple:<\/p>\n<p><font size=\"2\"><\/p>\n<p>sendDirectMessage(<\/p>\n<p><\/font><font color=\"#a31515\" size=\"2\"><font color=\"#a31515\" size=\"2\">&quot;kathweaver&quot;<\/font><\/font><font size=\"2\">, <\/font><font color=\"#a31515\" size=\"2\"><font color=\"#a31515\" size=\"2\">&quot;password&quot;<\/font><\/font><font size=\"2\">, txtTo.Text, txtMessage.Text);<\/font><\/p>\n<p><font size=\"2\">I&#39;ve got my twitter username, twitter password hard coded and am sending the text from a textbox for the recipent and the message.<\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just found the 52 weeks Coding Challenge by Dream in Code and decided to take some time I am supervising my students to try coing a Twitter program. So I&#39;ve created a little C# program that sends a direct message. I got the actual code from http:\/\/www.dreamincode.net\/code\/snippet4094.htm &#0160;and the idea from http:\/\/www.dreamincode.net\/forums\/showtopic150412.htm The implementation [&hellip;]<\/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":[],"class_list":["post-744","post","type-post","status-publish","format-standard","hentry","category-blog"],"_links":{"self":[{"href":"https:\/\/kweaver.org\/cs\/wp-json\/wp\/v2\/posts\/744","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kweaver.org\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kweaver.org\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kweaver.org\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kweaver.org\/cs\/wp-json\/wp\/v2\/comments?post=744"}],"version-history":[{"count":0,"href":"https:\/\/kweaver.org\/cs\/wp-json\/wp\/v2\/posts\/744\/revisions"}],"wp:attachment":[{"href":"https:\/\/kweaver.org\/cs\/wp-json\/wp\/v2\/media?parent=744"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kweaver.org\/cs\/wp-json\/wp\/v2\/categories?post=744"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kweaver.org\/cs\/wp-json\/wp\/v2\/tags?post=744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}