Branch: master
Find file History
Latest commit 7ead384 Sep 2, 2018

README.md

Requirements to run these examples

  • Node 8+
  • Install the dependencies by running npm install from within the examples/nodejs directory.
  • A Calibre API token

Each example can be run by executing it as a script, eg: CALIBRE_API_TOKEN=YOUR_TOKEN_HERE examples/nodejs/create-test.js.

Available examples

  • create-test.js - Creates a one-off test for a given URL
  • list-agent-locations.js - Prints a list of Calibre’s test locations
  • world.js - Create a one-off test for a given URL from every Calibre test location
  • create-site.js - Add a site to be tracked by Calibre. Includes configuration of mobile emulation, cookies, and a number of pages
  • get-all-pulse-metrics.js - Iterates through every site and page in an account, returns the last 7 days of 'consistently-interactive' metrics for each.

Writing your own, or looking for help?

To check what API functionality is available, check index.js at the root of this repository. If you spot something note quite right, or have a question, please log a new issue or contact Calibre support. If you’ve built or adapated an example for your usecase, be sure to share it in a new issue ✌️