mkdir mygoapp
, then change to that directory and install the Gin and Plivo packages using the go
command.
GOPATH
.
from
and to
on the PHLO console.
TriggerPhlo.go
— and paste into it the code below for either a static or dynamic payload.
<auth_id>
and <auth_token>
with your authentication credentials, which you can find on the overview page of the Plivo console.auth_id
and auth_token
environment variables to avoid the possibility of accidentally committing them to source control. If you do this, you can initialize the client with no arguments and it will automatically fetch the values from the environment variables.<phlo_id>
with the PHLO_ID from the PHLO list screen of the Plivo console.<Caller_ID>
with a phone number you’ve purchased, and <Destination_Number>
with the phone number you’ll be calling. Both phone numbers should be in E.164 format.