// TODO /// <summary> /// /// </summary> /// <param name="orderBy"></param> /// <param name="offset"></param> /// <param name="limit">max: 2000</param> /// <returns></returns> public async Task <List <Quote>?> GetQuotesAsync(string orderBy = "id", int offset = 0, int limit = 500) => await _api.GetAsync <List <Quote> >("2.0/kb_offer" .AddQueryParameter("order_by", orderBy) .AddQueryParameter("offset", offset) .AddQueryParameter("limit", limit));
// TODO // Fetch a list of items // Create item // Search items // Fetch an item public async Task <Article?> GetArticleAsync(int articleId) => await _api.GetAsync <Article>($"2.0/article/{articleId}");
/// <summary> /// /// </summary> /// <param name="orderBy">"id" or "name" // may append _desc</param> /// <param name="offset"></param> /// <param name="limit">max: 2000</param> /// <returns></returns> public async Task <List <Project>?> GetProjectsAsync(string orderBy = "id", int offset = 0, int limit = 500) => await _api.GetAsync <List <Project> >("2.0/pr_project" .AddQueryParameter("order_by", orderBy) .AddQueryParameter("offset", offset) .AddQueryParameter("limit", limit));
/// <summary> /// /// </summary> /// <param name="userId"></param> /// <returns></returns> public async Task <User?> GetUserAsync(int userId) => await _api.GetAsync <User>($"3.0/users/{userId.ToString()}");
/// <summary> /// /// </summary> /// <param name="orderBy">"id" or "nr" or "name_1" or "name_2" // may append _desc</param> /// <param name="offset"></param> /// <param name="limit">max: 2000</param> /// <returns></returns> public async Task <List <Contact>?> GetContactsAsync(int orderBy = 0, int offset = 0, int limit = 500) => await _api.GetAsync <List <Contact> >("2.0/contact" .AddQueryParameter("order_by", orderBy) .AddQueryParameter("offset", offset) .AddQueryParameter("limit", limit));