Skip to content

Instantly share code, notes, and snippets.

@Kugelschieber
Last active February 18, 2022 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kugelschieber/c352cee3ee7a213d91bfb3245f02190a to your computer and use it in GitHub Desktop.
Save Kugelschieber/c352cee3ee7a213d91bfb3245f02190a to your computer and use it in GitHub Desktop.
List the Pirsch client domain.
var { Client } = require("pirsch-sdk");
var client = new Client({
hostname: "your-domain", // don't forget to set these!
clientID: "your-client-id",
clientSecret: "your-client-secret"
});
client.domain()
.then(d => {
console.log(d);
})
.catch(e => {
console.log(e);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment