// Before running the sample:
// - Enable the API at:
// https://console.developers.google.com/apis/api/domainsrdap.googleapis.com
// - Login into gcloud by running:
// `$ gcloud auth application-default login`
// - Install the npm module by running:
// `$ npm install googleapis`
const {google} = require('googleapis');
const domainsrdap = google.domainsrdap('v1');
async function main() {
const auth = new google.auth.GoogleAuth({
// Scopes can be specified either as an array or as a single, space-delimited string.
scopes: [],
});
// Acquire an auth client, and bind it to all future calls
const authClient = await auth.getClient();
google.options({auth: authClient});
// Do the magic
const res = await domainsrdap.getHelp({});
console.log(res.data);
// Example response
// {
// "contentType": "my_contentType",
// "data": "my_data",
// "extensions": []
// }
}
main().catch(e => {
console.error(e);
throw e;
});
// Before running the sample:
// - Enable the API at:
// https://console.developers.google.com/apis/api/domainsrdap.googleapis.com
// - Login into gcloud by running:
// `$ gcloud auth application-default login`
// - Install the npm module by running:
// `$ npm install googleapis`
const {google} = require('googleapis');
const domainsrdap = google.domainsrdap('v1');
async function main() {
const auth = new google.auth.GoogleAuth({
// Scopes can be specified either as an array or as a single, space-delimited string.
scopes: [],
});
// Acquire an auth client, and bind it to all future calls
const authClient = await auth.getClient();
google.options({auth: authClient});
// Do the magic
const res = await domainsrdap.entity.get({
entityId: 'placeholder-value',
});
console.log(res.data);
// Example response
// {
// "description": [],
// "errorCode": 0,
// "jsonResponse": {},
// "lang": "my_lang",
// "notices": [],
// "rdapConformance": [],
// "title": "my_title"
// }
}
main().catch(e => {
console.error(e);
throw e;
});
// Before running the sample:
// - Enable the API at:
// https://console.developers.google.com/apis/api/domainsrdap.googleapis.com
// - Login into gcloud by running:
// `$ gcloud auth application-default login`
// - Install the npm module by running:
// `$ npm install googleapis`
const {google} = require('googleapis');
const domainsrdap = google.domainsrdap('v1');
async function main() {
const auth = new google.auth.GoogleAuth({
// Scopes can be specified either as an array or as a single, space-delimited string.
scopes: [],
});
// Acquire an auth client, and bind it to all future calls
const authClient = await auth.getClient();
google.options({auth: authClient});
// Do the magic
const res = await domainsrdap.autnum.get({
autnumId: 'placeholder-value',
});
console.log(res.data);
// Example response
// {
// "description": [],
// "errorCode": 0,
// "jsonResponse": {},
// "lang": "my_lang",
// "notices": [],
// "rdapConformance": [],
// "title": "my_title"
// }
}
main().catch(e => {
console.error(e);
throw e;
});
// Before running the sample:
// - Enable the API at:
// https://console.developers.google.com/apis/api/domainsrdap.googleapis.com
// - Login into gcloud by running:
// `$ gcloud auth application-default login`
// - Install the npm module by running:
// `$ npm install googleapis`
const {google} = require('googleapis');
const domainsrdap = google.domainsrdap('v1');
async function main() {
const auth = new google.auth.GoogleAuth({
// Scopes can be specified either as an array or as a single, space-delimited string.
scopes: [],
});
// Acquire an auth client, and bind it to all future calls
const authClient = await auth.getClient();
google.options({auth: authClient});
// Do the magic
const res = await domainsrdap.domain.get({
// Full domain name to look up. Example: "example.com"
domainName: '[^/]+',
});
console.log(res.data);
// Example response
// {
// "contentType": "my_contentType",
// "data": "my_data",
// "extensions": []
// }
}
main().catch(e => {
console.error(e);
throw e;
});
// Before running the sample:
// - Enable the API at:
// https://console.developers.google.com/apis/api/domainsrdap.googleapis.com
// - Login into gcloud by running:
// `$ gcloud auth application-default login`
// - Install the npm module by running:
// `$ npm install googleapis`
const {google} = require('googleapis');
const domainsrdap = google.domainsrdap('v1');
async function main() {
const auth = new google.auth.GoogleAuth({
// Scopes can be specified either as an array or as a single, space-delimited string.
scopes: [],
});
// Acquire an auth client, and bind it to all future calls
const authClient = await auth.getClient();
google.options({auth: authClient});
// Do the magic
const res = await domainsrdap.nameserver.get({
nameserverId: 'placeholder-value',
});
console.log(res.data);
// Example response
// {
// "description": [],
// "errorCode": 0,
// "jsonResponse": {},
// "lang": "my_lang",
// "notices": [],
// "rdapConformance": [],
// "title": "my_title"
// }
}
main().catch(e => {
console.error(e);
throw e;
});