Api Jurnal.club
Jurnal Club APIs are completely RESTful and all our responses are returned in JSON. Use this API to send message with all types
TO_PHONE = TO_PHONE/GROUP, "6281575068531", send to group with format like this "6281259162033-1449917720@g.us"
YOUR_TOKEN = get token from jurnal.club
YOUR_TEXT = your message
YOUR_TOKEN = get token from jurnal.club
YOUR_TEXT = your message
phone = YOUR_PHONE_TO_QUOTED "62324234324"
phone is optional for direct message
phone is optional for direct message
NodeJS
Send Text
var post = { to: 'TO_PHONE', token: 'YOUR_TOKEN', text : 'YOUR_TEXT' }
const options = {
method: 'POST',
headers: {'content-type': 'application/x-www-form-urlencoded'}, data: qs.stringify(post),
url: 'https://api.jurnal.club/send/text'
}
axios(options).then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); });
PHP
Send Text
$postRequest = ['to' => TO_PHONE, 'token' => YOUR_TOKEN, 'text' => YOUR_TEXT];
$cURLConnection = curl_init('https://api.jurnal.club/send/text');
curl_setopt($cURLConnection, CURLOPT_POSTFIELDS, $postRequest);
curl_setopt($cURLConnection, CURLOPT_RETURNTRANSFER, true);
$apiResponse = curl_exec($cURLConnection);
curl_close($cURLConnection);
$jsonArrayResponse = json_decode($apiResponse);
YOUR_URL = URL link address for media example is video, audio, image, sticker
NodeJS
Send Image
var post = { to: 'TO_PHONE', token: 'YOUR_TOKEN', url : 'YOUR_URL' }
const options = {
method: 'POST',
headers: {'content-type': 'application/x-www-form-urlencoded'}, data: qs.stringify(post),
url: 'https://api.jurnal.club/send/image'
}
axios(options).then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); });
PHP
Send Image
$postRequest = ['to' => TO_PHONE, 'token' => YOUR_TOKEN, 'url' => YOUR_URL];
$cURLConnection = curl_init('https://api.jurnal.club/send/image');
curl_setopt($cURLConnection, CURLOPT_POSTFIELDS, $postRequest);
curl_setopt($cURLConnection, CURLOPT_RETURNTRANSFER, true);
$apiResponse = curl_exec($cURLConnection);
curl_close($cURLConnection);
$jsonArrayResponse = json_decode($apiResponse);
YOUR_IMAGE must be base64
YOUR_MIME = ["image/png", "image/jpeg", "image/gif"]
YOUR_MIME = ["image/png", "image/jpeg", "image/gif"]
NodeJS
Send Sticker
var post = { to: 'TO_PHONE', token: 'YOUR_TOKEN', image : 'YOUR_IMAGE', mime : 'YOUR_MIME' }
const options = {
method: 'POST',
headers: {'content-type': 'application/x-www-form-urlencoded'}, data: qs.stringify(post),
url: 'https://api.jurnal.club/send/sticker'
}
axios(options).then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); });
PHP
Send Sticker
$postRequest = ['to' => TO_PHONE, 'token' => YOUR_TOKEN, image => 'YOUR_IMAGE', mime => 'YOUR_MIME'];
$cURLConnection = curl_init('https://api.jurnal.club/send/sticker');
curl_setopt($cURLConnection, CURLOPT_POSTFIELDS, $postRequest);
curl_setopt($cURLConnection, CURLOPT_RETURNTRANSFER, true);
$apiResponse = curl_exec($cURLConnection);
curl_close($cURLConnection);
$jsonArrayResponse = json_decode($apiResponse);
YOUR_URL_AUDIO
NodeJS
Send Audio
var post = { to: 'TO_PHONE', token: 'YOUR_TOKEN',text : 'YOUR_TEXT', url : 'YOUR_URL_AUDIO'}
const options = {
method: 'POST',
headers: {'content-type': 'application/x-www-form-urlencoded'}, data: qs.stringify(post),
url: 'https://api.jurnal.club/send/audio'
}
axios(options).then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); });
PHP
Send Thumbnail
$postRequest = ['to' => TO_PHONE, 'token' => YOUR_TOKEN, text => 'YOUR_TEXT', image => 'YOUR_IMAGE', mime => 'YOUR_MIME'];
$cURLConnection = curl_init('https://api.jurnal.club/send/thumbnail');
curl_setopt($cURLConnection, CURLOPT_POSTFIELDS, $postRequest);
curl_setopt($cURLConnection, CURLOPT_RETURNTRANSFER, true);
$apiResponse = curl_exec($cURLConnection);
curl_close($cURLConnection);
$jsonArrayResponse = json_decode($apiResponse);
BEGIN:VCARD\n
VERSION:3.0\n
FN:Andy Fitria\n
ORG:Sintret Ltd;\n
TEL;type=CELL;type=VOICE;waid=6281575068530:+62 81575 068530\n
END:VCARD
NodeJS
Send VCard
var post = { to: 'TO_PHONE', token: 'YOUR_TOKEN',text : 'YOUR_TEXT'}
const options = {
method: 'POST',
headers: {'content-type': 'application/x-www-form-urlencoded'}, data: qs.stringify(post),
url: 'https://api.jurnal.club/send/vcard'
}
axios(options).then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); });
PHP
Send VCard
$postRequest = ['to' => TO_PHONE, 'token' => YOUR_TOKEN, vcard => 'YOUR_VCARD'];
$cURLConnection = curl_init('https://api.jurnal.club/send/vcard');
curl_setopt($cURLConnection, CURLOPT_POSTFIELDS, $postRequest);
curl_setopt($cURLConnection, CURLOPT_RETURNTRANSFER, true);
$apiResponse = curl_exec($cURLConnection);
curl_close($cURLConnection);
$jsonArrayResponse = json_decode($apiResponse);
YOUR_GROUP_NUMBER = "120363030509287250@g.us"
NodeJS
Get Group Info
var post = { to: 'TO_PHONE', token: 'YOUR_TOKEN',text : 'YOUR_GROUP_NUMBER'}
const options = {
method: 'POST',
headers: {'content-type': 'application/x-www-form-urlencoded'}, data: qs.stringify(post),
url: 'https://api.jurnal.club/send/group'
}
axios(options).then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); });
YOUR_GROUP_NUMBER = "120363030509287250@g.us"
YOUR_TEXT = "120363030509287250@g.us" or leave it blank
TO_PHONE must be group number or YOUR_TEXT must be group number
YOUR_TEXT = "120363030509287250@g.us" or leave it blank
NodeJS
Get Group Invitation Info
var post = { to: 'TO_PHONE', token: 'YOUR_TOKEN',text:'YOUR_TEXT'}
const options = {
method: 'POST',
headers: {'content-type': 'application/x-www-form-urlencoded'}, data: qs.stringify(post),
url: 'https://api.jurnal.club/send/invite'
}
axios(options).then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); });
YOUR_GROUP_NUMBER = "120363030509287250@g.us"
NodeJS
Typing...
var post = { to: 'TO_PHONE', token: 'YOUR_TOKEN'}
const options = {
method: 'POST',
headers: {'content-type': 'application/x-www-form-urlencoded'}, data: qs.stringify(post),
url: 'https://api.jurnal.club/send/typing'
}
axios(options).then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); });
YOUR TEXT MUST INCLUDE LAT,LON = "-7.040174,108.6540235"
NodeJS
Location
var post = { to: 'TO_PHONE', token: 'YOUR_TOKEN',text:'YOUR_TEXT'}
const options = {
method: 'POST',
headers: {'content-type': 'application/x-www-form-urlencoded'}, data: qs.stringify(post),
url: 'https://api.jurnal.club/send/location'
}
axios(options).then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); });
YOUR TEXT MUST video url
https://api.jurnal.club/uploads/video/hate_u.mp4
https://api.jurnal.club/uploads/video/hate_u.mp4
NodeJS
Video
var post = { to: 'TO_PHONE', token: 'YOUR_TOKEN',text:'YOUR_TEXT'}
const options = {
method: 'POST',
headers: {'content-type': 'application/x-www-form-urlencoded'}, data: qs.stringify(post),
url: 'https://api.jurnal.club/send/video'
}
axios(options).then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); });
YOUR_TEXT = "PHONE_NUMBER_TARGET"
Download your target profile image at https://api.jurnal.club/uploads/pp/YOUR_TEXT.jpg
NodeJS
Profile
var post = { to: 'TO_PHONE', token: 'YOUR_TOKEN',text:'YOUR_TEXT'}
const options = {
method: 'POST',
headers: {'content-type': 'application/x-www-form-urlencoded'}, data: qs.stringify(post),
url: 'https://api.jurnal.club/send/profile'
}
axios(options).then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); });
YOUR_SECTIONS = [
{
title: "Section 1",
rows: [
{title: "Option 1", rowId: "option1"},
{title: "Option 2", rowId: "option2", description: "This is a description"}
]
},
{
title: "Section 2",
rows: [
{title: "Option 3", rowId: "option3"},
{title: "Option 4", rowId: "option4", description: "This is a description V2"}
]
},
]
YOUR_TEXT = Your text
YOUR_TITLE = Title text
YOUR_FOOTER = Footer text
YOUR_BUTTONS = Button text
NodeJS
List
var post = { to: 'TO_PHONE', token: 'YOUR_TOKEN',text:'YOUR_TEXT',sections: 'YOUR_SECTIONS',title:'YOUR_TITLE', footer:'YOUR_FOOTER',buttons:'YOUR_BUTTONS'}
const options = {
method: 'POST',
headers: {'content-type': 'application/x-www-form-urlencoded'}, data: qs.stringify(post),
url: 'https://api.jurnal.club/send/list'
}
axios(options).then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); });
YOUR_BUTTONS = [
{index: 1, urlButton: {displayText: '⭐ Belajar membuat system', url: 'https://tokomaker.com'}},
{index: 2, callButton: {displayText: 'Call me!', phoneNumber: '+62 (815) 750-68530'}},
{index: 3, quickReplyButton: {displayText: 'This is a reply, just like normal buttons!', id: 'id-like-buttons-message'}},
]
YOUR_FOOTER_TEXT = Your text
YOUR_TEXT = Your text
NodeJS
Button
var post = { to: 'TO_PHONE', token: 'YOUR_TOKEN',text:'YOUR_TEXT',buttons:'YOUR_BUTTONS',footer: 'YOUR_FOOTER_TEXT'}
const options = {
method: 'POST',
headers: {'content-type': 'application/x-www-form-urlencoded'}, data: qs.stringify(post),
url: 'https://api.jurnal.club/send/button'
}
axios(options).then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); });