WhatsApp API: Difference between revisions
No edit summary |
m 4 revisions imported |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
== Instalasi == | == Instalasi == | ||
Membuat folder untuk experiment dan masuk ke dalamnya | |||
mkdir whatsapp-api | |||
cd whatsapp-api | |||
Lakukan inisialisasi npm | |||
npm init | |||
package name: (whatsapp-api) | |||
version: (1.0.0) | |||
Masukkan deskripsi | |||
description: Whatsapp api by AbahDoku | |||
Masukkan entry point, defaultnya index.js | |||
entry point: (index.js) app.js | |||
Kosongkan sementara yang berikut ini : | |||
test command: | |||
git repository: | |||
Masukkan keyword, author, license | |||
keywords: whatsapp-api, node.js | |||
author: AbahDoku Wiki | |||
license: (ISC) MIT | |||
Hasilnya | |||
/whatsapp-api/package.json: | |||
{ | |||
"name": "whatsapp-api", | |||
"version": "1.0.0", | |||
"description": "Whatsapp api by AbahDoku", | |||
"main": "app.js", | |||
"scripts": { | |||
"test": "echo \"Error: no test specified\" && exit 1" | |||
}, | |||
"keywords": [ | |||
"whatsapp-api", | |||
"node.js" | |||
], | |||
"author": "AbahDoku Wiki", | |||
"license": "MIT" | |||
} | |||
Is this ok? (yes) yes | |||
Instalasi modul whatsapp-web.js melalui npm dengan perintah | |||
npm i whatsapp-web.js | |||
== Referensi == | == Referensi == | ||
* [https://github.com/pedroslopez/whatsapp-web.js/ pedroslopez/whatsapp-web.js] | * [https://github.com/pedroslopez/whatsapp-web.js/ pedroslopez/whatsapp-web.js] |
Latest revision as of 22:47, 19 November 2024
Experiment pembuatan Whatsapp API ini menggunakan macOS High Sierra 10.13.6 (17G14042).
Instalasi[edit]
Membuat folder untuk experiment dan masuk ke dalamnya
mkdir whatsapp-api cd whatsapp-api
Lakukan inisialisasi npm
npm init package name: (whatsapp-api) version: (1.0.0)
Masukkan deskripsi
description: Whatsapp api by AbahDoku
Masukkan entry point, defaultnya index.js
entry point: (index.js) app.js
Kosongkan sementara yang berikut ini :
test command: git repository:
Masukkan keyword, author, license
keywords: whatsapp-api, node.js author: AbahDoku Wiki license: (ISC) MIT
Hasilnya
/whatsapp-api/package.json:
{ "name": "whatsapp-api", "version": "1.0.0", "description": "Whatsapp api by AbahDoku", "main": "app.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [ "whatsapp-api", "node.js" ], "author": "AbahDoku Wiki", "license": "MIT" }
Is this ok? (yes) yes
Instalasi modul whatsapp-web.js melalui npm dengan perintah
npm i whatsapp-web.js