예제 #1
0
 /// <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));
 }
예제 #2
0
 /// <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());
 }
예제 #3
0
 /// <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));
 }
예제 #4
0
 /// <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));
 }
예제 #5
0
 /// <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));
 }