/edgeworkers-mpulse-reporting-api

Modify request to mPulse Reporting API

Primary LanguageJavaScriptApache License 2.0Apache-2.0

edgeworkers-json-inline

Demo for sending an mPulse reporting-API request from EW.

Keyword(s): mpulse, reporting-api, circleci

CircleCI (Optional)

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.

Account Info Variables

  • $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.

Akamai API Credential Variables

  • $ACCESS_TOKEN
  • $HOST
  • $CLIENT_SECRET
  • $CLIENT_TOKEN

Similar Uses

SubRequests being made from EdgeWorkers can open up numerous possibilities to generate responses for APIs.

More details on EdgeWorkers