Tabnine Logo For Javascript
RequestAPI.del
Code IndexAdd Tabnine to your IDE (free)

How to use
del
function
in
RequestAPI

Best JavaScript code snippets using request.RequestAPI.del(Showing top 15 results out of 315)

origin: dialogflow/dialogflow-nodejs-client

deleteWebhook() {
    if (this._botConfig.webhookId) {
      return new Promise((resolve, reject) => {
        request.del("https://api.ciscospark.com/v1/webhooks/" + this._botConfig.webhookId,
origin: voucherifyio/voucherify-nodejs-sdk

delete (path, callback, options = {}) {
  const handler = prepare(callback)
  request.del(this.prepareOptions(path, options), handler.callback)
  return handler.promise
 }
origin: Ryzzzen/manaflux

async deletePerkPages() {
  await rp.del(Mana.base + 'lol-perks/v1/pages');
  this._perks = [];
 }
origin: Ryzzzen/manaflux

async deletePerkPage(page, index = this._perks.indexOf(page)) {
  try {
   await rp.del(Mana.base + 'lol-perks/v1/pages/' + page.id);
   this._perks[index] = null;
  }
  catch(err) {
   if (err.statuscode === 404) {
    await this.queryPerks();
   }
   else throw err;
  }
 }
origin: DinoChiesa/apigee-edge-js

promiseWrap(function(options, cb) {
  // DELETE :mgmtserver/v1/o/:orgname/maskconfigs/:name
  // DELETE :mgmtserver/v1/o/:orgname/apis/:proxy/maskconfigs/:name
  var conn = this.conn;
  if ( ! cb) {
   throw new Error("missing callback");
  }
  if ( ! options.name) { options.name = 'default'; }
  var proxy = options.apiproxy || options.proxy;
  common.insureFreshToken(conn, function(requestOptions) {
   requestOptions.url = resolveMaskconfigsPath(conn, options);
   request.del(requestOptions, common.callback(conn, [200, 204], cb));
  });
 })
origin: wiaio/wia-nodejs-sdk

request.del(wia.getApiUrl() + "users/" + id, {
   auth: {
    bearer: wia.getApiField('accessToken')
   },
   json: true,
   headers: wia.getHeaders()
  }, function (error, response, body) {
   if (cb) {
    if (error) return cb(error, null);
    if (response.statusCode == 200)
     cb(null, true);
    else
     cb(new WiaExceptions.WiaRequestException(response.statusCode, body || ""));
   }
  });
origin: DinoChiesa/apigee-edge-js

promiseWrap(function(options, cb) {
  // DELETE :mgmtserver/v1/o/:orgname/developers/:developer
  // Authorization: :edge-auth
  var conn = this.conn;
  if ( !options.developerEmail) {
   return cb(new Error("missing developerEmail"));
  }
  if (conn.verbosity>0) {
   utility.logWrite(sprintf('Delete Developer %s', options.developerEmail));
  }
  common.insureFreshToken(conn, function(requestOptions) {
   requestOptions.url = urljoin(conn.urlBase, 'developers', options.developerEmail);
   if (conn.verbosity>0) {
    utility.logWrite(sprintf('DELETE %s', requestOptions.url));
   }
   request.del(requestOptions, common.callback(conn, [200], cb));
  });
 })
origin: DinoChiesa/apigee-edge-js

promiseWrap(function(options, cb) {
  // DELETE  /v1/o/ORG/e/ENV/virtualhosts/VHOST
  const conn = this.conn;
  const vhost = options.vhost || options.vhostName || options.virtualhost || options.name;
  const env = options.environmentName || options.environment || options.env;
  if (!env) {
   throw new Error("missing environment name");
  }
  if ( ! vhost) {
   throw new Error("missing vhost name");
  }
  common.insureFreshToken(conn, function(requestOptions) {
   requestOptions.url = urljoin(conn.urlBase, 'e', env, 'virtualhosts', vhost);
   if (conn.verbosity>0) {
    utility.logWrite(sprintf('DELETE %s', requestOptions.url));
   }
   request.del(requestOptions, common.callback(conn, [200], cb));
  });
 })
origin: DinoChiesa/apigee-edge-js

promiseWrap(function(options, cb) {
  // DELETE :mgmtserver/v1/o/:orgname/keyvaluemaps/:kvmname
  // DELETE :mgmtserver/v1/o/:orgname/e/:env/keyvaluemaps/:kvmname
  // DELETE :mgmtserver/v1/o/:orgname/apis/:proxy/keyvaluemaps/:kvmname
  // DELETE :mgmtserver/v1/o/:orgname/apis/:proxy/revisions/:rev/keyvaluemaps/:kvmname
  var conn = this.conn;
  var name = options.name || options.kvmName || options.kvm;
  if ( ! name ) {
   return cb({error:"missing KVM name"});
  }
  common.insureFreshToken(conn, function(requestOptions) {
   requestOptions.url = urljoin(resolveKvmPath(conn, options), name);
   if (conn.verbosity>0) {
    utility.logWrite(sprintf('DELETE %s', requestOptions.url));
   }
   request.del(requestOptions, common.callback(conn, [200], cb));
  });
 })
origin: DinoChiesa/apigee-edge-js

promiseWrap(function(options, cb) {
  // DELETE :mgmtserver/v1/o/:orgname/apiproducts/:apiproductname
  // Authorization: :edge-auth
  var conn = this.conn;
  var name = options.productName || options.name;
  if (!name) {
   return cb(new Error('missing name for apiproduct'));
  }
  if (conn.verbosity>0) {
   utility.logWrite(sprintf('Delete API Product %s', name));
  }
  common.insureFreshToken(conn, function(requestOptions) {
   requestOptions.url = urljoin(conn.urlBase, 'apiproducts', name);
   if (conn.verbosity>0) {
    utility.logWrite(sprintf('DELETE %s', requestOptions.url));
   }
   request.del(requestOptions, common.callback(conn, [200], cb));
  });
 })
origin: DinoChiesa/apigee-edge-js

promiseWrap(function(options, cb) {
  // DELETE :mgmtserver/v1/o/:orgname/e/:env/resourcefiles/xsl/foo.xsl
  const conn = this.conn;
  const name = options.name;
  if ( ! name ) {
   return cb(new Error("missing resourcefile name"));
  }
  const resourceType = options.type || xlateResourceType(path.extname(name));
  if ( ! validResourceType(resourceType) ) {
   return cb(new Error("invalid resource type"));
  }
  common.insureFreshToken(conn, function(requestOptions) {
   var baseUrlPath = resolveResourceFileUrlPath(conn, options);
   requestOptions.url = sprintf('%s/%s/%s', baseUrlPath, resourceType, name);
   if (conn.verbosity>0) {
    utility.logWrite(sprintf('DELETE %s', requestOptions.url));
   }
   request.del(requestOptions, common.callback(conn, [200], cb));
  });
 })
origin: DinoChiesa/apigee-edge-js

promiseWrap(function(options, cb) {
  // DELETE :mgmtserver/v1/o/:org/e/:env/targetservers/:targetserver
  var conn = this.conn;
  var env = options.environment || options.env;
  if ( ! env) {
   return cb(new Error('missing required parameter: environment'));
  }
  if ( ! options.name) {
   return cb(new Error('missing required parameter: name'));
  }
  common.insureFreshToken(conn, function(requestOptions) {
   requestOptions.url = urljoin(conn.urlBase, 'e', env, 'targetservers', options.name);
   if (conn.verbosity>0) {
    utility.logWrite(sprintf('DELETE %s', requestOptions.url));
   }
   request.del(requestOptions, common.callback(conn, [200], cb));
  });
 })
origin: DinoChiesa/apigee-edge-js

promiseWrap(function(options, cb) {
  // DELETE :mgmtserver/v1/o/:orgname/e/:env/references/:reference
  // Authorization: :edge-auth
  const conn = this.conn,
     env = (options.environment)? (options.environment.name || options.environment): options.environment,
     name = options.name || options.reference;
  if ( ! env ) {
   return cb({error:"missing environment"});
  }
  if ( ! name ) {
   return cb({error:"missing reference name"});
  }
  common.insureFreshToken(conn, function(requestOptions) {
   requestOptions.url = urljoin(conn.urlBase, 'e', env, 'references', name);
   if (conn.verbosity>0) {
    utility.logWrite(sprintf('DELETE %s', requestOptions.url));
   }
   request.del(requestOptions, common.callback(conn, [200], cb));
  });
 })
origin: DinoChiesa/apigee-edge-js

promiseWrap(function(options, cb) {
  // DELETE :mgmtserver/v1/o/:orgname/e/:env/keystores/:keystore
  // Authorization: :edge-auth
  var conn = this.conn;
  var env = options.environment.name || options.environment;
  var name = options.name || options.keystore;
  if ( ! env ) {
   return cb({error:"missing environment"});
  }
  if ( ! name ) {
   return cb({error:"missing keystore name"});
  }
  common.insureFreshToken(conn, function(requestOptions) {
   requestOptions.url = urljoin(conn.urlBase, 'e', env, 'keystores', name);
   if (conn.verbosity>0) {
    utility.logWrite(sprintf('DELETE %s', requestOptions.url));
   }
   request.del(requestOptions, common.callback(conn, [200], cb));
  });
 })
origin: wiaio/wia-nodejs-sdk

request.del(wia.getApiUrl() + "users/" + userId + "/devices/" + deviceId, {
   auth: {
    bearer: wia.getApiField('accessToken')
   },
   json: true,
   headers: wia.getHeaders()
  }, function (error, response, body) {
   if (cb) {
    if (error) return cb(error);
    if (response.statusCode == 200)
     cb(null, true);
    else
     cb(new WiaExceptions.WiaRequestException(response.statusCode, body || ""));
   }
  });
request(npm)RequestAPIdel

Most used request functions

  • request
  • Response.statusCode
  • RequestAPI.post
  • RequestAPI.get
  • Request.pipe
  • rp,
  • Request.on,
  • Response.headers,
  • RequestAPI.defaults,
  • RequestAPI.put,
  • RequestAPI.jar,
  • Response.statusMessage,
  • RequestAPI.head,
  • Response.on,
  • RequestAPI.cookie,
  • RequestAPI.delete,
  • Response.pipe,
  • RequestAPI.del,
  • requestRetry

Popular in JavaScript

  • mongodb
    The official MongoDB driver for Node.js
  • through2
    A tiny wrapper around Node.js streams.Transform (Streams2/3) to avoid explicit subclassing noise
  • http
  • yargs
    yargs the modern, pirate-themed, successor to optimist.
  • js-yaml
    YAML 1.2 parser and serializer
  • fs-extra
    fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as mkdir -p, cp -r, and rm -rf.
  • webpack
    Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
  • debug
    small debugging utility
  • q
    A library for promises (CommonJS/Promises/A,B,D)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJavascript Code Index
Get Tabnine for your IDE now