Skip to content

Instantly share code, notes, and snippets.

View kamnan43's full-sized avatar

Sitthi Thiammekha kamnan43

View GitHub Profile
var fs = require('fs');
var request = require('request');
var formData = {
message: 'test message',
imageFile: fs.createReadStream('/file/path.jpeg'),
};
var options = {
method: 'POST',
url: 'https://notify-api.line.me/api/notify',
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="theme-color" content="#000000" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title>Clinic</title>
</head>
{
"type": "carousel",
"contents": [
{
"type": "bubble",
"body": {
"type": "box",
"layout": "vertical",
"contents": [
{
{
"type": "bubble",
"body": {
"type": "box",
"layout": "vertical",
"spacing": "md",
"contents": [
{
"type": "text",
"text": "Head 2 Head",
{
"type": "bubble",
"body": {
"type": "box",
"layout": "vertical",
"spacing": "md",
"contents": [
{
"type": "text",
"text": "Statistics",
{
"type": "bubble",
"size": "mega",
"hero": {
"type": "image",
"url": "https://emetworks-cigna.s3.ap-southeast-1.amazonaws.com/BotResource/travel-annual-header.png",
"size": "full",
"aspectMode": "cover",
"aspectRatio": "16.6:3.7"
},
{
"type": "carousel",
"contents": [
{
"type": "bubble",
"body": {
"type": "box",
"layout": "vertical",
"spacing": "md",
"contents": [
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0, shrink-to-fit=no" />
<meta name="theme-color" content="#000000" />
<title>TEST</title>
</head>
{
"size": {
"width": 2500,
"height": 843
},
"selected": true,
"name": "Rich Menu A",
"chatBarText": "เมนู",
"areas": [
{
{
"size": {
"width": 2500,
"height": 1686
},
"selected": true,
"name": "Rich Menu B",
"chatBarText": "เมนู",
"areas": [
{