Last active
February 18, 2022 12:53
-
-
Save Kugelschieber/c352cee3ee7a213d91bfb3245f02190a to your computer and use it in GitHub Desktop.
List the Pirsch client domain.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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