/// <summary> /// Shortcut for JsonService.Url(baseUri).Get(params) /// </summary> /// <param name="url">Full API URL to the GET method</param> /// <param name="queryParams">Key/value pair query data parameters (e.g. ?key=value)</param> /// <returns>Json</returns> public static dynamic GetFrom(string url, object queryParams) { return(JsonService.For(url).Get(queryParams)); }
/// <summary> /// Shortcut for JsonService.Url(baseUri).Get() /// </summary> /// <param name="url">Full API URL to the GET method</param> /// <returns>Json</returns> public static dynamic GetFrom(string url) { return(JsonService.For(url).Get()); }
/// <summary> /// Shortcut for JsonService.Url(baseUri).Post(params) /// </summary> /// <param name="url">Full API URL to the GET method</param> /// <param name="dataParams">Key/value pair form data parameters (e.g. ?key=value)</param> /// <returns>Json</returns> public static dynamic PostTo(string url, object dataParams) { return(JsonService.For(url).Post(dataParams)); }
/// <summary> /// Shortcut for JsonService.Url(baseUri).Post(params) /// </summary> /// <param name="url">Full API URL to the POST method</param> /// <param name="dataParams">String dictionary of Key/value pair form data parameters (e.g. ?key=value)</param> /// <returns>Json</returns> public static dynamic PostTo(string url, IDictionary <string, string> dataParams) { return(JsonService.For(url).Post(dataParams)); }
/// <summary> /// Shortcut for JsonService.Url(baseUri).Get(params) /// </summary> /// <param name="url">Full API URL to the GET method</param> /// <param name="queryData">Key/value pair query data parameters (e.g. ?key=value)</param> /// <returns>Json</returns> public static dynamic GetFrom(string url, IDictionary <string, string> queryData) { return(JsonService.For(url).Get(queryData)); }