Notion App Integration for creating and sharing Notion pages as self help articles via Ticket Replies

-
- Data Methods
- Instance Methods
- Interface Methods
- Product Events
- Installation Parameters(iparams)
-
- Working with Notion Databases, Pages, Properties
- Pagination Using Cursor
- Notion API Integration
- Filtering ,Sorting data from API
-
- Using Custom Styled Components
- Working with Custom Component Events
- Using reusable classes like
fw-flexfor designing and layout
- Create a Notion Account
- Duplicate this template for database template
- Create a new notion integration and copy the 50 character
api_keyfrom https://www.notion.so/my-integrations
- Share the database with the integration to access it using API.
- Clone the repo
git clone https://github.com/kunal-singhh/notion-freshdesk - Type command
fdk runto run your app - Open the url
http://localhost:10001/custom_configsfor setting up yourapi_keycopied at point3and paste your api key with Name
- Go to your freshdesk account ticket page and append it with
?dev=trueto test the application eg:https://<YOUR_DOMAIN>.freshdesk.com/a/tickets/4?dev=true
| Feature | Purpose |
|---|---|
| App lifecycle methods | app.initialized(), app.activated() |
| Data methods | To get ticket details, user details |
| Interface methods | To open/close modal, send/receive data across instances and create new ticket reply or append data to ticket reply |
| Request methods | For api calls post, get etc |
| Instance methods | To get context inside modal - sharing data to-and-fr |
| Installation params | custom installation page (iparams.json is used) to collect api keys and user details |
- We Can not invoke interface methods from modal hence pass them back to parent and then invoke interface methods
- instance methods can be used to send data between different instances modal <-> app


