title: json call with C#
body: <p>I am trying to make <a href="https://www.pennysms.com/docs_json" rel="noreferrer">a json call</a> using C#.  I made a stab at creating a call, but it did not work:</p>
  
  <pre><code>public bool SendAnSMSMessage(string message)
  {
      HttpWebRequest request = (HttpWebRequest)
                               WebRequest.Create("http://api.pennysms.com/jsonrpc");
      request.Method = "POST";
      request.ContentType = "application/json";
  
      string json = "{ \"method\": \"send\", "+
                    "  \"params\": [ "+
                    "             \"IPutAGuidHere\", "+
                    "             \"msg@MyCompany.com\", "+
                    "             \"MyTenDigitNumberWasHere\", "+
                    "             \""+message+"\" " +
                    "             ] "+
                    "}";
  
      StreamWriter writer = new StreamWriter(request.GetRequestStream());
      writer.Write(json);
      writer.Close();
  
      return true;
  }
  </code></pre>
  
  <p>Any advice on how to make this work would be appreciated.</p>