Method: YNAB::CategoriesApi#get_category_by_id

Defined in:
lib/ynab/api/categories_api.rb

#get_category_by_id(budget_id, category_id, opts = {}) ⇒ CategoryResponse

Single category Returns a single category. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC).

Parameters:

  • budget_id (String)

    The id of the budget. "last-used" can be used to specify the last used budget and "default" can be used if default budget selection is enabled (see: api.ynab.com/#oauth-default-budget).

  • category_id (String)

    The id of the category

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



91
92
93
94
# File 'lib/ynab/api/categories_api.rb', line 91

def get_category_by_id(budget_id, category_id, opts = {})
  data, _status_code, _headers = get_category_by_id_with_http_info(budget_id, category_id, opts)
  data
end