public void Delete() { HttpHelper.Delete(string.Format("/segments/{0}.json", _segmentID), null); }
public void ClearRules() { HttpHelper.Delete(string.Format("/segments/{0}/rules.json", _segmentID), null); }
public SegmentDetail Details() { string json = HttpHelper.Get(string.Format("/segments/{0}.json", _segmentID), null); return(JavaScriptConvert.DeserializeObject <SegmentDetail>(json)); }
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)); }
public U HttpGet <U, EX>(string path, NameValueCollection queryArguments) where EX : ErrorResult { return(HttpHelper.Get <U, EX>(AuthDetails, options.BaseUri, path, queryArguments)); }
public string HttpDelete(string path, NameValueCollection queryArguments) { return(HttpHelper.Delete(AuthDetails, path, queryArguments, options.BaseUri, HttpHelper.APPLICATION_JSON_CONTENT_TYPE)); }