An API Wrapper for Bolt
Do you need a paid license ? https://jzarca01.github.io/contact
yarn add node-bolt
const Bolt = require("node-bolt");
const bolt = new Bolt({
licenseFilePath: "./license_files/file.lic", // relative path to the root of the project
user: "", // user's phone number
deviceUUID: "" // user's device UUID
});
bolt.login();
bolt.verify(code);
bolt.findPromosAvailable({ lat, lng });
bolt.addPromoCode(promoCode);
bolt.findCoordinatesByAddress(address);
bolt.findAddressByCoordinates({ lat, lng });
bolt.findAddress({ lat, lng }, searchTerm);
bolt.findAddressByPlaceId(placeId);
bolt.getSuggestedDropoffs({ lat, lng });
bolt.getPaymentMethodsByTemplate({ lat, lng, country_code });
bolt.getPrices(startLocation, endLocation, campaignCode = null);
bolt.getNearbyVehicles({ lat, lng });
const updatedProfile = {
first_name: "Bob",
email: "[email protected]",
last_name: "Bob",
language: "fr",
birthday: "1986-01-01",
allow_sendind_news: false
};
bolt.updateProfile(updatedProfile);
bolt.getOrders();
bolt.getOrderDetails(orderId);
bolt.getPaymentMethodsPerTemplate({ lat, lng, country_code });
bolt.createOrder(
startLocation,
endLocation,
priceLockId,
searchToken,
searchCategoryId,
payment = { type: "default", id: "cash" }
);
bolt.getCurrentActiveOrder();
bolt.cancelOrder(orderId);
bolt.addCancellationReason(orderId, reason = "Accidental request");
bolt.pollingClient(orderId);
bolt.setDefaultPaymentMethod({ id, type });
bolt.deletePaymentMethod({ id, type });