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

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);

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);

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);

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);

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);

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); });

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); });

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); });

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); });

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); });

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); });

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); });

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); });

Form Example