{"id":1341,"date":"2012-09-06T15:46:32","date_gmt":"2012-09-06T14:46:32","guid":{"rendered":"http:\/\/soci.hu\/blog\/?p=1341"},"modified":"2012-09-12T15:17:39","modified_gmt":"2012-09-12T14:17:39","slug":"sms-kuldes-skype-pal","status":"publish","type":"post","link":"https:\/\/soci.hu\/blog\/index.php\/2012\/09\/06\/sms-kuldes-skype-pal\/","title":{"rendered":"SMS k\u00fcld\u00e9s skype-pal"},"content":{"rendered":"<p>Az egyik programomb\u00f3l SMS-t akartam k\u00fcldeni, ha gond van vele. Skype apival ez nagyon egyszer\u0171:<\/p>\n<p>public class SmsSender<br \/>\n    {<br \/>\n        public static void Main()<br \/>\n        {<br \/>\n            new SmsSender().SendSms(&#8220;+36XXXXXXXXX&#8221;, &#8220;Test&#8221;);<br \/>\n        }<\/p>\n<p>        public void SendSms(string phoneNumber, string smsText)<br \/>\n        {<br \/>\n            ISkype skype = new Skype();<br \/>\n            ISmsMessage ismsmessage = skype.CreateSms(TSmsMessageType.smsMessageTypeOutgoing, phoneNumber);<br \/>\n            ismsmessage.Body = smsText;<br \/>\n            ismsmessage.Send();<br \/>\n        }<br \/>\n    }<\/p>\n<p>Valszeg l\u00e9trehozok neki egy saj\u00e1t skype accountot, rakok r\u00e1 n\u00e9mi p\u00e9nzt, azt\u00e1n j\u00f6het az sms.<br \/>\nA fentihez kell a Skype Desktop API, amihez kicsit hosszadalmasan <a href=\"http:\/\/developer.skype.com\/\">regisztr\u00e1lni kell<\/a>, \u00e9s a v\u00e9g\u00e9n kapunk egy COM DLL-t, azt interoppal trivi\u00e1lis h\u00edvni, mint fent is l\u00e1that\u00f3.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Az egyik programomb\u00f3l SMS-t akartam k\u00fcldeni, ha gond van vele. Skype apival ez nagyon egyszer\u0171: public class SmsSender { public static void&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,4],"tags":[],"class_list":["post-1341","post","type-post","status-publish","format-standard","hentry","category-net","category-szakmai-elet"],"_links":{"self":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=1341"}],"version-history":[{"count":4,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1341\/revisions"}],"predecessor-version":[{"id":1349,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1341\/revisions\/1349"}],"wp:attachment":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=1341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}