This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let headers = { | |
'User-Agent': 'Ruby' | |
} | |
await axios.post('https://www.google-analytics.com/batch', body, { headers }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "kamiflex" | |
# 資料表 | |
class Product | |
attr_accessor :name | |
attr_accessor :price | |
attr_accessor :image | |
attr_accessor :inventory | |
def initialize(name:, price:, inventory:, image:) | |
self.name = name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "kamiflex" | |
# 資料表 | |
class Product | |
attr_accessor :name | |
attr_accessor :price | |
attr_accessor :image | |
attr_accessor :inventory | |
def initialize(name:, price:, inventory:, image:) | |
self.name = name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "json" | |
# 資料表 | |
class Product | |
attr_accessor :name | |
attr_accessor :price | |
attr_accessor :image | |
attr_accessor :inventory | |
def initialize(name:, price:, inventory:, image:) | |
self.name = name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "json" | |
# 資料表 | |
class Product | |
attr_accessor :name | |
attr_accessor :price | |
attr_accessor :image | |
attr_accessor :inventory | |
def initialize(name:, price:, inventory:, image:) | |
self.name = name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { router, text, messenger } = require('bottender/router'); | |
const { | |
run, | |
registerAction, | |
getAction, | |
prompt, | |
} = require('@bottender/proposal-conversation'); | |
async function SayHi(context) { | |
await context.sendText('Hi!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { router, text, messenger } = require('bottender/router'); | |
const { | |
run, | |
registerAction, | |
getAction, | |
prompt, | |
} = require('@bottender/proposal-conversation'); | |
async function SayHi(context) { | |
await context.sendText('Hi!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/etrex/.../node_module_test/node_modules/bottender -> /Users/etrex/.asdf/installs/nodejs/12.10.0/.npm/lib/node_modules/bottender |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/etrex/.asdf/installs/nodejs/12.10.0/.npm/bin/btd -> /Users/etrex/.asdf/installs/nodejs/12.10.0/.npm/lib/node_modules/bottender/bin/cli.js | |
/Users/etrex/.asdf/installs/nodejs/12.10.0/.npm/bin/bottender -> /Users/etrex/.asdf/installs/nodejs/12.10.0/.npm/lib/node_modules/bottender/bin/cli.js | |
/Users/etrex/.asdf/installs/nodejs/12.10.0/.npm/lib/node_modules/bottender -> /Users/etrex/.../bottender/packages/bottender |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
... | |
"dependencies": { | |
"bottender": "^1.3.5" | |
} | |
} |
NewerOlder