TypeScript typings for ACME DNS API v1
Google Domains ACME DNS API that allows users to complete ACME DNS-01 challenges for a domain.
For detailed description please check documentation.
Installing
Install typings for ACME DNS API:
npm install @types/gapi.client.acmedns-v1 --save-dev
Usage
You need to initialize Google API client in your code:
gapi.load('client', () => {
});
Then load api client wrapper:
gapi.client.load(
'https://acmedns.googleapis.com/$discovery/rest?version=v1',
() => {
}
);
gapi.client.load('acmedns', 'v1', () => {
});
After that you can use ACME DNS API resources:
await gapi.client.acmedns.acmeChallengeSets.get({rootDomain: 'rootDomain'});
await gapi.client.acmedns.acmeChallengeSets.rotateChallenges({
rootDomain: 'rootDomain',
});