Ejemplo n.º 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));
 }
Ejemplo n.º 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());
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }