-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from wxt9861/bug_fix
Bump dependency / better debug
- Loading branch information
Showing
6 changed files
with
139 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
.DS_Store | ||
|
||
# apicheck | ||
apitest.py | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"python.pythonPath": "/usr/local/bin/python3" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
""" | ||
Use to figure out if the issue with YNAB component is related to the | ||
component itself or the package it uses to interact with YNAB | ||
To run, you must have python3 and ynab-sdk installed on the machine | ||
Install using pip3 install ynab-sdk | ||
Replace API_KEY_HERE with your API key | ||
Run the file using python3 apitest.py | ||
If everything works, you should see a summary of your budgets | ||
Otherwise you will see an error | ||
""" | ||
|
||
from ynab_sdk import YNAB | ||
|
||
try: | ||
api_key = "API_KEY_HERE" | ||
apicheck = YNAB(api_key) | ||
# print(apicheck.budgets.get_budgets()) | ||
# data = apicheck.budgets.get_budget("BUDGET_ID") | ||
# print(data.data.budget.id) | ||
except Exception: | ||
raise |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters