Skip to content

Latest commit

 

History

History
120 lines (84 loc) · 3.95 KB

ScheduledTransactionsApi.md

File metadata and controls

120 lines (84 loc) · 3.95 KB

ynab.ScheduledTransactionsApi

All URIs are relative to https://api.youneedabudget.com/v1

Method HTTP request Description
get_scheduled_transaction_by_id GET /budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id} Single scheduled transaction
get_scheduled_transactions GET /budgets/{budget_id}/scheduled_transactions List scheduled transactions

get_scheduled_transaction_by_id

ScheduledTransactionResponse get_scheduled_transaction_by_id(budget_id, scheduled_transaction_id)

Single scheduled transaction

Returns a single scheduled transaction

Example

from __future__ import print_function
import time
import ynab
from ynab.rest import ApiException
from pprint import pprint

# Configure API key authorization: bearer
configuration = ynab.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = ynab.ScheduledTransactionsApi(ynab.ApiClient(configuration))
budget_id = 'budget_id_example' # str | The ID of the Budget.
scheduled_transaction_id = 'scheduled_transaction_id_example' # str | The ID of the Scheduled Transaction.

try:
    # Single scheduled transaction
    api_response = api_instance.get_scheduled_transaction_by_id(budget_id, scheduled_transaction_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ScheduledTransactionsApi->get_scheduled_transaction_by_id: %s\n" % e)

Parameters

Name Type Description Notes
budget_id str The ID of the Budget.
scheduled_transaction_id str The ID of the Scheduled Transaction.

Return type

ScheduledTransactionResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_scheduled_transactions

ScheduledTransactionsResponse get_scheduled_transactions(budget_id)

List scheduled transactions

Returns all scheduled transactions

Example

from __future__ import print_function
import time
import ynab
from ynab.rest import ApiException
from pprint import pprint

# Configure API key authorization: bearer
configuration = ynab.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = ynab.ScheduledTransactionsApi(ynab.ApiClient(configuration))
budget_id = 'budget_id_example' # str | The ID of the Budget.

try:
    # List scheduled transactions
    api_response = api_instance.get_scheduled_transactions(budget_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ScheduledTransactionsApi->get_scheduled_transactions: %s\n" % e)

Parameters

Name Type Description Notes
budget_id str The ID of the Budget.

Return type

ScheduledTransactionsResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]