async function performRequest(keysOptions) {
  return new Promise( (resolve, reject) => {
    request(keysOptions, function (error, response, body) {
      if (!error && response.statusCode == 200) {
        resolve(JSON.parse(body).keys);
      } else {
        reject(error);
      }
    });
  });
}
/**
 * Make the request to the publickeys endpoint
 */
Make the request to the publickeys endpoint
Make the request to the publickeys endpoint
async function performRequest(keysOptions) {
  return new Promise( (resolve, reject) => {
    request(keysOptions, function (error, response, body) {
      if (!error && response.statusCode == 200) {
        resolve(JSON.parse(body).keys);
      } else {
        reject(error);
      }
    });
  });
}
async function performRequest ( keysOptions ) { return new Promise ( ( resolve , reject ) => { request ( keysOptions , function ( error , response , body ) { if ( ! error && response . statusCode == 200 ) { resolve ( JSON . parse ( body ) . keys ) ; } else { reject ( error ) ; } } ) ; } ) ; }
Make the request to the publickeys endpoint
Make the request to the publickeys endpoint