Example #1
0
 internal static T PatchItem <T>(string uri, T item)
 {
     return(HttpUtil.PatchItemAsync <T>(uri, item).GetResult());
 }
Example #2
0
 internal static void DeleteItem(string uri)
 {
     HttpUtil.DeleteItemAsync(uri).GetResult();
 }
Example #3
0
 internal static T GetItems <T>(string uri)
 {
     return(HttpUtil.GetItemsAsync <T>(uri).GetResult());
 }
Example #4
0
 internal static T PostItem <T>(string uri, T item = default(T))
 {
     return(HttpUtil.PostItemAsync <T>(uri, item).GetResult());
 }
Example #5
0
 private static AccessTokenResponse DoTokenHttp(string body)
 {
     return(HttpUtil.DoHttp <string, AccessTokenResponse>("POST", TokenUri, body, (dummy) => null).GetResult());
 }