twilio-professional-services / flex-dialpad-addon-plugin

Adds agent to agent outbound call and external number transfer to Twilio Flex native dialpad
26 stars 20 forks source link

Instructions for the appconfig.js #58

Open Gunjan-twilio opened 2 years ago

Gunjan-twilio commented 2 years ago

It will be great if you can add the instructions for how to update ServiceConfiguration. Looks like the options are to update the appconfig.js or run a curl command?

curl https://flex-api.twilio.com/v1/Configuration -X POST -u accountsid:token \
    -H 'Content-Type: application/json' \
    -d '{
    "outbound_call_flows": {
        "default": {
            "workflow_sid": "WWxxxc",
            "enabled": true,
            "queue_sid": "WQxxx",
            "caller_id": "+1xxx",
            "location": "US"
        }
    },
    "account_sid": "ACxx3"
}'