code: function sendRequest(url) {
          return new Promise((resolve, reject) => {
              request(url, (error, response, body) => {
                      if (!error && response.statusCode == 200) {
                          if (body.errcode) {
                              console.warn(body.errmsg);
                              reject(body.errmsg);
                          }
                          else {
                              resolve(body);
                          }
                      }
                      else {
                          console.warn(error);
                          reject(error);
                      }
                  }
              );
          });
      }
docs: /*
  send request Promise