public static async Task <T> PostAsync <T>(string ApiUrl, string JsonContent) where T : new() { return(await PostAsync <T>(ClientHelper.GetClient(), ApiUrl, JsonContent)); }
public static T Post <T>(string ApiUrl, string JsonContent) where T : new() { return(PostAsync <T>(ClientHelper.GetClient(), ApiUrl, JsonContent).Result); }
public static async Task <T> GetByTokenAsync <T>(string ApiUrl, string Token) where T : new() { return(await GetAsync <T>(ClientHelper.GetClient(Token), ApiUrl)); }
public static async Task <T> GetByBasicAuthAsync <T>(string ApiUrl, string Username, string Password) where T : new() { return(await GetAsync <T>(ClientHelper.GetClient(Username, Password), ApiUrl)); }
public static async Task <T> PostByBasicAuthAsync <T>(string ApiUrl, string JsonContent, string Username, string Password) where T : new() { return(await PostAsync <T>(ClientHelper.GetClient(Username, Password), ApiUrl, JsonContent)); }