protected string GetApiResponse(string endpoint, ApiMethod method) { var client = new SentralRestClient(GetUri(endpoint), _header, method, null); var response = client.Invoke(); return(response); }
protected T GetApiResponse <T>(string endpoint, ApiMethod method, string payload) { var client = new SentralRestClient(GetUri(endpoint), _header, method, payload); var response = client.Invoke(); return(JsonConvert.DeserializeObject <T>(response, _settings)); }
protected BinaryFile GetBinaryFile(string endpoint) { var client = new SentralRestClient(GetUri(endpoint), _header, ApiMethod.GET, null); return(client.InvokeBinaryResponse()); }
protected byte[] GetBinaryData(string endpoint) { var client = new SentralRestClient(GetUri(endpoint), _header, ApiMethod.GET, null); return(client.InvokeBinary()); }