コード例 #1
0
ファイル: YnabApi.cs プロジェクト: leistnerm/MyBudgetExplorer
 /// <summary>
 /// /budgets/{budgetId}/payees - List payees
 /// </summary>
 /// <param name="budgetId">The id of the budget (“last-used” can also be used to specify the last used budget)</param>
 /// <returns>Returns all payees</returns>
 public PayeesResponse GetPayees(string budgetId = "last-used")
 {
     return(PayeesResponse.Load(Connect("GET", $"/budgets/{budgetId}/payees")));
 }
コード例 #2
0
ファイル: YnabApi.cs プロジェクト: leistnerm/MyBudgetExplorer
 /// <summary>
 /// /budgets/{budgetId}/payees/{payeeId} - Single payee
 /// </summary>
 /// <param name="payeeId">The id of the payee</param>
 /// <param name="budgetId">The id of the budget (“last-used” can also be used to specify the last used budget)</param>
 /// <returns>Returns single payee</returns>
 public Task <PayeeResponse> GetPayee(string payeeId, string budgetId = "last-used")
 {
     return(PayeesResponse.Load(Connect("GET", $"/budgets/{budgetId}/payees/{payeeId}")));
 }