Skip to content
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

Add Playbook to Notion #93

Open
GouravSardana opened this issue Apr 28, 2021 · 9 comments
Open

Add Playbook to Notion #93

GouravSardana opened this issue Apr 28, 2021 · 9 comments
Labels
enhancement New feature or request Hacktoberfest This Issue Will be Consider Under Hacktoberfest 2021

Comments

@GouravSardana
Copy link
Member

In this feature, we need these things -

  1. Create a notion account and generate the token. The flow would be like this -

    • dynamic --notion -> Open up notion login to the browser and ask them to log in.

    • After this -> The terminal will show. 'Notion Logged in' or 'Notion logged in failed'

  2. Now it's time to upload. Use dynamic --notionupload or nu. Then it will automatically fill up the question to the notion. We have to implement a similar thing like this. We have to make this from scratch.

@GouravSardana GouravSardana added the enhancement New feature or request label Apr 28, 2021
@NamamiShanker
Copy link
Member

When you mean to implement it from the scratch, you mean we can't use the notion library you linked? We have to build the authentication and uploading system on our own?

@GouravSardana
Copy link
Member Author

Nops. Authentication - we can used from notion but from the product prospective, we have to reduce the 3rd party package. Because if someday our 1 thing will upgrade then it might effect other packages.

@NamamiShanker
Copy link
Member

I agree. I was wondering if we can implement browser login for the notion login. A browser window will open upon typing dynamic -notion. The user will log in to the notion. The program will receive an authentication token that can then be used to sync playbook data.

@GouravSardana
Copy link
Member Author

Yup, that we have to made it from scratch or need to find some other way

@NamamiShanker
Copy link
Member

Should we store the token locally in some file so that the user doesn't have to log in again until the cookie expires?

@Souvikns
Copy link

Hey, I have used the notion API before, build this for fun. I would like to work on this, would be nice to have some insight.

@GouravSardana
Copy link
Member Author

@Souvikns So basically we implemented the login using notion. If you download dynamic and explore --notion then you can able to login. That way you will get auth token. @NamamiShanker implemented that features.
We have playbook as well --playbook. We need to upload that playbook data to notion. So that in future if we change our computer/Laptop our playbook still remain in sync.

@Souvikns
Copy link

Hey, so I am using windows and as it does not run on windows I am running on GitHub codespaces, so when I am using the command dynamic --notion it shows login unsuccessful as there is no chrome. Is there any other way to set it up.

@GouravSardana
Copy link
Member Author

Ahh got it. One way is to use VMware and install linux and use the dynamic.

Another simple way is to comment all the dependencies of terminos. That was causing incompatibility. I'm looking for another way but will take some time. You can try second way

@GouravSardana GouravSardana added the hacktoberfest-accepted Good Work, Your Pull Request is Accepted for the Hacktoberfest label Sep 30, 2021
@Siddhant-K-code Siddhant-K-code added Hacktoberfest This Issue Will be Consider Under Hacktoberfest 2021 and removed hacktoberfest-accepted Good Work, Your Pull Request is Accepted for the Hacktoberfest labels Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Hacktoberfest This Issue Will be Consider Under Hacktoberfest 2021
Projects
None yet
Development

No branches or pull requests

4 participants