Ejemplo n.º 1
0
        public static void PostRestMethod(string TagToVerify, string body)
        {
            body = RestHelper.CreateJsonRequest();
            PublicVar.Response = RestHelper.RestPost(PublicVar.BaseUrl, PublicVar.RequestType, TagToVerify, body);
            JObject json = JObject.Parse(PublicVar.Response);

            PublicVar.UniqueId = json.Last.Last.ToString().Replace("{", "").Replace("}", "").Trim();
        }
Ejemplo n.º 2
0
 public static void PutRestMethod(string TagToVerify, string body)
 {
     body = RestHelper.CreateJsonRequest();
     PublicVar.Response = RestHelper.RestPut(PublicVar.BaseUrl, PublicVar.RequestType + PublicVar.UniqueId, TagToVerify, body);
 }