showing results for - "google api nodejs client"
Julia
30 Mar 2017
1const {google} = require('googleapis');
2
3// Each API may support multiple version. With this sample, we're getting
4// v3 of the blogger API, and using an API key to authenticate.
5const blogger = google.blogger({
6  version: 'v3',
7  auth: 'YOUR API KEY'
8});
9
10const params = {
11  blogId: '3213900'
12};
13
14// get the blog details
15blogger.blogs.get(params, (err, res) => {
16  if (err) {
17    console.error(err);
18    throw err;
19  }
20  console.log(`The blog url is ${res.data.url}`);
21});