Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void SendMessage(IDictionary<string, string> message)
- {
- var client = new RestClient(MahUrl);
- var request = new RestRequest(Method.POST);
- var json = new JObject();
- foreach (var pair in message)
- {
- json.Add(pair.Key, pair.Value);
- }
- json = new JObject(new JProperty("message", json));
- // {
- // "message":
- // {
- // "prop1": "val1",
- // "foo": "bar",
- // "batman": "robin"
- // }
- // }
- // not quite sure here
- request.?
- // send request
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement