Exemple #1
0
 public static void SendMessage(string Gamertag, string Message)
 {
     string Endpoint = "/conversations";
     //string Data = string.Format("{\"to\":\"{0}\",\"message\":\"{1}\"}", Gamertag, Message);
     string Data           = "{\"to\":\"" + Gamertag + "\",\"message\":\"" + Message + "\"}";
     Uri    RequestAddress = new Uri(string.Format("{0}{1}", BASEURI, Endpoint));
     string Response       = RestServices.GetPostResponse(RequestAddress, Data, APIKEY);
 }
Exemple #2
0
 public static void UnfavoriteFriend(string xuid)
 {
     string Endpoint = "/friends/favorite/remove";
     //string Data = string.Format("{\"xuids\":[{0}]}", xuid);
     string Data           = "{\"xuids\":[" + xuid + "]}";
     Uri    RequestAddress = new Uri(string.Format("{0}{1}", BASEURI, Endpoint));
     string Response       = RestServices.GetPostResponse(RequestAddress, Data, APIKEY);
 }