I hereby claim:
- I am rickardpettersson on github.
- I am rickardp (https://keybase.io/rickardp) on keybase.
- I have a public key ASCUrFDW-vl8VIDr9UYT3drih_9HVA5KFqjdRBVnP-JxsAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
using System; | |
using System.IO; | |
using System.Net; | |
using System.Security.Cryptography.X509Certificates; | |
using System.Text; | |
using System.Web; | |
namespace WebShop.Helpers | |
{ | |
public class SwishAPIHelper |
-- Metadata | |
meta.id = "Unified.TellStick" | |
meta.name = "TellStick" | |
meta.author = "Unified Intents" | |
meta.description = "TellStick remote" | |
--Device methods | |
local TELLSTICK_TURNON = 1 | |
local TELLSTICK_TURNOFF = 2 |
HttpWebRequest req = null; | |
HttpWebResponse rsp = null; | |
try | |
{ | |
string uri = "http://www.trafikverket.se/Trafikverket/Orion/OrionProxy.ashx"; | |
req = (HttpWebRequest)HttpWebRequest.Create(uri); | |
req.Method = "POST"; // Post method | |
req.ContentType = "text/xml; encoding='utf-8'"; // content type |