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

            return(JavaScriptConvert.DeserializeObject <SegmentDetail>(json));
        }
예제 #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));
 }
예제 #5
0
 public U HttpGet <U, EX>(string path, NameValueCollection queryArguments)
     where EX : ErrorResult
 {
     return(HttpHelper.Get <U, EX>(AuthDetails, options.BaseUri, path, queryArguments));
 }
예제 #6
0
 public string HttpDelete(string path, NameValueCollection queryArguments)
 {
     return(HttpHelper.Delete(AuthDetails, path, queryArguments, options.BaseUri, HttpHelper.APPLICATION_JSON_CONTENT_TYPE));
 }