How to use the @google-cloud/common.util.makeRequest function in @google-cloud/common

To help you get started, we’ve selected a few @google-cloud/common examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github googleapis / nodejs-common / system-test / fixtures / kitchen / src / index.ts View on Github external
import {GoogleAuthOptions, Operation,Service, ServiceConfig, ServiceOptions,
  DeleteCallback, ExistsCallback, GetConfig, MetadataCallback,
  InstanceResponseCallback, Interceptor, Metadata, Methods, ServiceObject,
  ServiceObjectConfig, StreamRequestOptions, Abortable, AbortableDuplex,
  ApiError, util} from '@google-cloud/common';

util.makeRequest({uri: 'test'}, {}, (err, body, res) => {
  console.log(err);
});
github googleapis / nodejs-translate / test / index.ts View on Github external
makeRequest(
    opts: DecorateRequestOptions,
    cfg: MakeRequestConfig,
    cb: BodyResponseCallback
  ) {
    if (makeRequestOverride) {
      return makeRequestOverride(opts, cfg, cb);
    }
    return util.makeRequest(opts, cfg, cb);
  },
});