How to use where clause in Knex
Create refunds with Stripe
Load HTML with Cheerio
How to send POST request with Axios
Find intersection of array in Lodash
Powered by Official white Bloop logo with a period

Terms / Privacy / Search / Support

  • const {google} = require('googleapis');
    const factchecktools = google.factchecktools('v1alpha1');
    Docs
  • // Before running the sample:
    // - Enable the API at:
    //   https://console.developers.google.com/apis/api/factchecktools.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 factchecktools = google.factchecktools('v1alpha1');
    
    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: ['https://www.googleapis.com/auth/userinfo.email'],
      });
    
      // 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 factchecktools.pages.delete({
        // The name of the resource to delete, in the form of `pages/{page_id\}`.
        name: 'pages/my-page',
      });
      console.log(res.data);
    
      // Example response
      // {}
    }
    
    main().catch(e => {
      console.error(e);
      throw e;
    });
    
    Docs
  • // Before running the sample:
    // - Enable the API at:
    //   https://console.developers.google.com/apis/api/factchecktools.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 factchecktools = google.factchecktools('v1alpha1');
    
    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: ['https://www.googleapis.com/auth/userinfo.email'],
      });
    
      // 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 factchecktools.pages.get({
        // The name of the resource to get, in the form of `pages/{page_id\}`.
        name: 'pages/my-page',
      });
      console.log(res.data);
    
      // Example response
      // {
      //   "claimReviewAuthor": {},
      //   "claimReviewMarkups": [],
      //   "name": "my_name",
      //   "pageUrl": "my_pageUrl",
      //   "publishDate": "my_publishDate",
      //   "versionId": "my_versionId"
      // }
    }
    
    main().catch(e => {
      console.error(e);
      throw e;
    });
    
    Docs
  • // Before running the sample:
    // - Enable the API at:
    //   https://console.developers.google.com/apis/api/factchecktools.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 factchecktools = google.factchecktools('v1alpha1');
    
    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: ['https://www.googleapis.com/auth/userinfo.email'],
      });
    
      // 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 factchecktools.pages.update({
        // The name of this `ClaimReview` markup page resource, in the form of `pages/{page_id\}`. Except for update requests, this field is output-only and should not be set by the user.
        name: 'pages/my-page',
    
        // Request body metadata
        requestBody: {
          // request body parameters
          // {
          //   "claimReviewAuthor": {},
          //   "claimReviewMarkups": [],
          //   "name": "my_name",
          //   "pageUrl": "my_pageUrl",
          //   "publishDate": "my_publishDate",
          //   "versionId": "my_versionId"
          // }
        },
      });
      console.log(res.data);
    
      // Example response
      // {
      //   "claimReviewAuthor": {},
      //   "claimReviewMarkups": [],
      //   "name": "my_name",
      //   "pageUrl": "my_pageUrl",
      //   "publishDate": "my_publishDate",
      //   "versionId": "my_versionId"
      // }
    }
    
    main().catch(e => {
      console.error(e);
      throw e;
    });
    
    Docs
  • // Before running the sample:
    // - Enable the API at:
    //   https://console.developers.google.com/apis/api/factchecktools.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 factchecktools = google.factchecktools('v1alpha1');
    
    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: ['https://www.googleapis.com/auth/userinfo.email'],
      });
    
      // 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 factchecktools.pages.create({
        // Request body metadata
        requestBody: {
          // request body parameters
          // {
          //   "claimReviewAuthor": {},
          //   "claimReviewMarkups": [],
          //   "name": "my_name",
          //   "pageUrl": "my_pageUrl",
          //   "publishDate": "my_publishDate",
          //   "versionId": "my_versionId"
          // }
        },
      });
      console.log(res.data);
    
      // Example response
      // {
      //   "claimReviewAuthor": {},
      //   "claimReviewMarkups": [],
      //   "name": "my_name",
      //   "pageUrl": "my_pageUrl",
      //   "publishDate": "my_publishDate",
      //   "versionId": "my_versionId"
      // }
    }
    
    main().catch(e => {
      console.error(e);
      throw e;
    });
    
    Docs
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples