Goal

Let us understand the goal in this section. The “Say Hello” app should,

  1. Have a button interface that says “Say Hello”.
  2. Take Freshservice domain from the app configuration.
  3. Use OAuth to access Freshservice API and ask for authorisation from the admin.
  4. Create a ticket in the Freshservice account and notify the agent a ticket is created.

Approach

  1. We will use the Freshworks’ UI components library Crayons to show a button interface with minimal code.
  2. Use installation parameters to get Freshservice domain from admin.
  3. Get OAuth credentials from the developer portal to access Freshservice API from the app.
  4. Use OAuth credentials in the app to get authorisation from the admin.
  5. Use Request Method feature to use OAuth and make API request from the app.
  6. Finally, we use the Interface method feature to notify the user of ticket creation action.