bzbs-api
v1.1.3
Published
Buzzebees API is a Python library for dealing with word pluralization.
Downloads
51
Readme
Buzzebees API
Buzzebees API is a Python library for dealing with word pluralization.
Installation
npm i bzbs-api
Init
import config from "../bzbs-info.json";
import { BSFramework, APIConfiguration } from "bzbs-api";
const bzbsInstance: BSFramework = BSFramework.init(
new APIConfiguration({
appId: config.appId,
baseUrl: config.baseUrl,
blobUrl: config.blobUrl,
isDebugMode: true,
timeoutInterval: 60,
moduleShoppingUrl: config.moduleShoppingUrl,
moduleUrl: config.moduleUrl,
prefixClientVersion: config.prefixClientVersion,
sponsorId: config.sponsorId,
subscriptionKey: config.subscriptionKey,
urlSchemesMainProject: config.urlSchemesMainProject,
webMisc: config.webMisc,
webShoppingUrl: config.webShoppingUrl,
webURL: config.webURL,
})
);
Use
///data and value(in onSuccess) is the same.
let data = bzbsInstance.dashboard
.subDashboard("config", 1033, {
onSuccess(value: DashboardResponse, response?: Response) {
console.log(value);
console.log(response);
},
})
.catch((e) => {
///Handle Error
console.log(e);
});
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.