Skip to content

Instantly share code, notes, and snippets.

@babara34r
babara34r / flex-contrainer-carousel.json
Created May 8, 2019 09:40 — forked from jirawatee/flex-contrainer-carousel.json
Carousel contrainer structure in Flex Message
@babara34r
babara34r / FlexMessage.js
Created May 8, 2019 04:26 — forked from jirawatee/FlexMessage.js
Flex Message in LINE Messaging API
const functions = require("firebase-functions");
const request = require("request-promise");
const LINE_MESSAGING_API = "https://api.line.me/v2/bot/message";
const LINE_HEADER = {
"Content-Type": "application/json",
"Authorization": "Bearer <CHANNEL-ACCESS-TOKEN>"
};
exports.AdvanceMessage = functions.https.onRequest((req, res) => {
@babara34r
babara34r / flex-component-separator.json
Created April 29, 2019 08:51 — forked from jirawatee/flex-component-separator.json
Separator component in Flex Message
{
"type": "bubble",
"body": {
"type": "box",
"layout": "vertical",
"spacing": "md",
"contents": [
{
"type": "box",
"layout": "horizontal",
@babara34r
babara34r / flex-component-filler.json
Created April 29, 2019 08:50 — forked from jirawatee/flex-component-filler.json
Filler component in Flex Message
{
"type": "bubble",
"body": {
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "image",
"url": "https://vignette.wikia.nocookie.net/line/images/b/bb/2015-brown.png/revision/latest"
},
@babara34r
babara34r / flex-component-box.json
Created April 29, 2019 08:50 — forked from jirawatee/flex-component-box.json
Box component in Flex Message
{
"type": "bubble",
"body": {
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "box",
"layout": "vertical",
"contents": [
@babara34r
babara34r / flex-component-text.json
Created April 29, 2019 08:49 — forked from jirawatee/flex-component-text.json
Text component in Flex Message
{
"type": "bubble",
"body": {
"type": "box",
"layout": "vertical",
"contents": [
{
"type": "text",
"text": "Closing the distance",
"weight": "bold"
@babara34r
babara34r / flex-component-image.json
Created April 29, 2019 08:48 — forked from jirawatee/flex-component-image.json
Image component in Flex Message
{
"type": "bubble",
"body": {
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "image",
"url": "https://www.linefriends.com/content/banner/201804/3b5364c97c2d4a26988f85acdc78514e.jpg",
"size": "full",
@babara34r
babara34r / flex-component-icon.json
Created April 29, 2019 08:47 — forked from jirawatee/flex-component-icon.json
Icon component in Flex Message
{
"type": "bubble",
"body": {
"type": "box",
"layout": "vertical",
"spacing": "md",
"contents": [
{
"type": "box",
"layout": "baseline",
@babara34r
babara34r / flex-component-button.json
Created April 29, 2019 08:46 — forked from jirawatee/flex-component-button.json
Button structure in Flex Message
{
"type": "bubble",
"body": {
"type": "box",
"layout": "vertical",
"spacing": "md",
"contents": [
{
"type": "button",
"style": "primary",
@babara34r
babara34r / flex-block.json
Created April 29, 2019 08:46 — forked from jirawatee/flex-block.json
Block structure in Flex Message
{
"type": "bubble",
"header": {
"type": "box",
"layout": "vertical",
"contents": [
{
"type": "text",
"text": "header"
}