Demo for sending an mPulse reporting-API request from EW.
Keyword(s): mpulse, reporting-api, circleci
Based on the Turbo Akamai Edgeworkers project. CircleCI can automate the deployment to staging for this EdgeWorker on each git commit
. The asociated configuration is in the .circleci.yml
file.
CircleCI Contexts is are used to pass on sensitive information in variables to the configuration file .circleci.yml
. The following variables should be managed under CirecleCI Contexts for this example.
- $ACCOUNTKEY: Optional. Used to switch between accounts. If not needed remove all associations and the
--accountkey
flag from the commands. - $HOSTNAME: Hostname associated to the property running EdegeWorkers. Used to create the enhanced debugging token.
- $ACCESS_TOKEN
- $HOST
- $CLIENT_SECRET
- $CLIENT_TOKEN
SubRequests being made from EdgeWorkers can open up numerous possibilities to generate responses for APIs.