-
Notifications
You must be signed in to change notification settings - Fork 1
Added steps for creating invoice transaction and fetching projects #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
FlaskApp/app.py
Outdated
import config | ||
from intuitlib.client import AuthClient | ||
from intuitlib.enums import Scopes | ||
from quickbooks import QuickBooks | ||
from quickbooks.objects.customer import Customer | ||
#from asana.rest import ApiException | ||
# from asana.rest import ApiException |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove this line containing "asana" reference all together on my behalf.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
FlaskApp/app.py
Outdated
logger.error(f"Error in callProjects: {str(e)}") | ||
flash('Error fetching Projects. Please try again.') | ||
return redirect('/') | ||
|
||
# receive events from asana |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove this line containing "asana" reference all together on my behalf.
FlaskApp/app.py
Outdated
# receive events from asana | ||
#hook_secret = None | ||
# hook_secret = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove this line all together on my behalf.
FlaskApp/static/styles.css
Outdated
input { | ||
margin-bottom: 20px; | ||
} | ||
|
||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove this line containing "asana" reference all together on my behalf.
@@ -34,36 +40,38 @@ | |||
# Define the scopes | |||
scopes = [ | |||
Scopes.ACCOUNTING, | |||
Scopes.PROJECT_MANAGEMENT | |||
Scopes.PROJECTS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added PROJECT_MANAGEMENT as scope in intuitlib meant for python? Has the intuitlib also been updated to include PROJECTS as scope instead of PROJECT_MANAGEMENT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mahajanpr I just checked the intuitlib https://github.com/intuit/oauth-pythonclient/blob/master/intuitlib/enums.py. The scope should be Scopes.PROJECT_MANAGEMENT. please use that and test it out.
Added steps for creating invoice transactions and get projects list