Exemplo n.º 1
0
 public void Delete()
 {
     HttpHelper.Delete(string.Format("/segments/{0}.json", _segmentID), null);
 }
Exemplo n.º 2
0
 public void ClearRules()
 {
     HttpHelper.Delete(string.Format("/segments/{0}/rules.json", _segmentID), null);
 }
Exemplo n.º 3
0
        public SegmentDetail Details()
        {
            string json = HttpHelper.Get(string.Format("/segments/{0}.json", _segmentID), null);

            return(JavaScriptConvert.DeserializeObject <SegmentDetail>(json));
        }
Exemplo n.º 4
0
 public U HttpPut <T, U>(string path, NameValueCollection queryArguments, T payload) where T : class
 {
     return(HttpHelper.Put <T, U>(AuthDetails, path, queryArguments, payload, options.BaseUri, HttpHelper.APPLICATION_JSON_CONTENT_TYPE));
 }
Exemplo n.º 5
0
 public U HttpGet <U, EX>(string path, NameValueCollection queryArguments)
     where EX : ErrorResult
 {
     return(HttpHelper.Get <U, EX>(AuthDetails, options.BaseUri, path, queryArguments));
 }
Exemplo n.º 6
0
 public string HttpDelete(string path, NameValueCollection queryArguments)
 {
     return(HttpHelper.Delete(AuthDetails, path, queryArguments, options.BaseUri, HttpHelper.APPLICATION_JSON_CONTENT_TYPE));
 }