hangouts-card-helper
v0.0.10
Published
>
Downloads
12
Maintainers
Readme
hangouts-card-helper
Installation
$ npm install --save hangouts-card-helper
Usage
const {
createButtonObject,
createButtonWidget,
createImageWidget,
createWidgets,
createSectionObject,
createSections,
createCardObject,
createCards
} = require('hangouts-card-helper');
let buttonUrl = 'https://github.com/bareinhard/hangouts-card-helper';
let buttonText = 'GITHUB';
let imageUrl =
'https://github.com/BaReinhard/Hacktoberfest-Mathematics/raw/webpage-build/src/Screenshot%202017-10-04%2009.35.48.png?raw=true';
let linkButton = createButtonObject(buttonText, buttonUrl);
let buttonWidget = createButtonWidget(linkButton, linkButton);
let imageWidget = createImageWidget(imageUrl);
let widgets = createWidgets(buttonWidget, imageWidget);
let section = createSectionObject(widgets);
let sections = createSections(section);
let card = createCardObject(sections);
let message = createCards(card);
res.send(message);
Output of Example:
License
Apache-2.0 © Brett Reinhard
Notice:
Testing was performed on a person business account hephaestus.solutions domain.