This project serves as a guide to help you build a click to call application with FreeClimb.
Specifically, the project will:
- Get phone numbers via a webpage
- Create an outgoing call using the FreeClimb API
- Create a conference using PerCL
- Connect an agenct and caller in a conference using PerCL
We offer a Click to Call via Web Browser How-To Guide for more detailed set-up instructions and explanation of how the code in this click to call sample app works.
A registered application with a named alias
A configured FreeClimb number assigned to your application
Trial accounts: a verified number
Tools:
-
Install the required packages
yarn install
-
Create a .env file and configure the following environment variables within it:
ENV VARIABLE DESCRIPTION ACCOUNT_ID Account ID which can be found under API credentials in dashboard. API_KEY API key which can be found under API credentials in dashboard. APP_ID Application Id associated with your freeclimb app can be found under Apps in dashboard. HOST The hostname as defined in your FC application. We recommend ngrok as an option to get up and running quickly. PORT Specifies the port on which the app will run (e.g. PORT=3000 means you would direct your browser to http://localhost:3000). FC_NUMBER The FreeClimb phone number associated with your application.
yarn startIf you would like to give the team feedback or you encounter a problem, please contact support or submit a ticket in the dashboard.