public static IRestResponse getClient() { api request = new api("<INSERT_API_KEY>", "<INSERT_API_SECRET>"); var parameters = new api.Parameters(); var clientId = 36447; var success = request.Get("v1/clients-and-locations/clients/" + clientId + "", parameters); // desereialize response dynamic obj = JsonConvert.DeserializeObject(success.Content); return(obj); }
public static IRestResponse searchClients() { api request = new api("<INSERT_API_KEY>", "<INSERT_API_SECRET>"); var parameters = new api.Parameters(); parameters.Add("q", "My Sample Query"); var success = request.Get("v1/clients-and-locations/clients/search", parameters); // desereialize response dynamic obj = JsonConvert.DeserializeObject(success.Content); return(obj); }