This file contains 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
#!/bin/bash | |
INSTANCE_ID="YOUR_INSTANCE_ID_HERE" # TODO: Replace it with your gateway instance ID here | |
CLIENT_ID="YOUR_CLIENT_ID_HERE" # TODO: Replace it with your "Forever Green" client ID here | |
CLIENT_SECRET="YOUR_CLIENT_SECRET_HERE" # TODO: Replace it with your "Forever Green" client secret here | |
# TODO: Specify the recipient's number (NOT the gateway number) on line 10. | |
read -r -d '' jsonPayload << _EOM_ | |
{ | |
"number": "12025550108", |
This file contains 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
#!/usr/bin/env node | |
var http = require('http'); | |
var instanceId = "YOUR_INSTANCE_ID_HERE"; // TODO: Replace it with your gateway instance ID here | |
var clientId = "YOUR_CLIENT_ID_HERE"; // TODO: Replace it with your Forever Green client ID here | |
var clientSecret = "YOUR_CLIENT_SECRET_HERE"; // TODO: Replace it with your Forever Green client secret here | |
var jsonPayload = JSON.stringify({ | |
number: "12025550108", // TODO: Specify the recipient's number here. NOT the gateway number |
This file contains 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
import java.io.BufferedReader; | |
import java.io.OutputStream; | |
import java.io.InputStreamReader; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
public class WhatsappSender { | |
// TODO: Replace the following with your instance ID, Forever Green Client ID and Secret: | |
private static final String INSTANCE_ID = "YOUR_INSTANCE_ID_HERE"; | |
private static final String CLIENT_ID = "YOUR_CLIENT_ID_HERE"; |
This file contains 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
$number = "12025550108" # Specify the recipient's number here. NOT the gateway number | |
$message = "Howdy, this is a message from PowerShell." | |
$instanceId = "YOUR_INSTANCE_ID_HERE" # TODO: Replace it with your gateway instance ID | |
$clientId = "YOUR_CLIENT_ID_HERE" # TODO: Replace it with your Forever Green client ID here | |
$clientSecret = "YOUR_CLIENT_SECRET_HERE" # TODO: Replace it with your Forever Green client secret here | |
$jsonObj = @{'number'=$number; | |
'message'=$message;} |
This file contains 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
<?php | |
$INSTANCE_ID = 'YOUR_INSTANCE_ID_HERE'; // TODO: Replace it with your gateway instance ID here | |
$CLIENT_ID = "YOUR_CLIENT_ID_HERE"; // TODO: Replace it with your Forever Green client ID here | |
$CLIENT_SECRET = "YOUR_CLIENT_SECRET_HERE"; // TODO: Replace it with your Forever Green client secret here | |
$postData = array( | |
'number' => '12025550108', // TODO: Specify the recipient's number here. NOT the gateway number | |
'message' => 'Howdy! Is this exciting?' | |
); |
This file contains 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
using System; | |
using System.Net; | |
using System.Web.Script.Serialization; // requires the reference 'System.Web.Extensions' | |
using System.IO; | |
using System.Text; | |
class WaMessageSender | |
{ | |
// TODO: Replace the following with your gateway instance ID, Forever Green client ID and secret: | |
private static string INSTANCE_ID = "YOUR_INSTANCE_ID_HERE"; |
This file contains 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
Imports System.IO | |
Imports System.Net | |
Imports System.Text | |
Imports System.Web.Script.Serialization | |
Public Class WaMessageSender | |
''' TODO: Replace the following with your gateway instance ID, Forever Green client ID and secret below: | |
Private Const INSTANCE_ID As String = "YOUR_INSTANCE_ID_HERE" |
This file contains 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
function main() { | |
var destNumber = "12025550108"; // TODO: Specify the recipient's number here. NOT THE GATEWAY NUMBER! | |
var message = "Aloha, this is my first message."; | |
sendWhatsapp(destNumber, message); | |
} | |
function sendWhatsapp(destNumber, message) { | |
var instanceId = "YOUR_INSTANCE_ID_HERE"; // TODO: Replace it with your gateway instance ID here | |
var clientId = "YOUR_CLIENT_ID_HERE"; // TODO: Replace it with your Forever Green client ID here |
This file contains 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
#!/bin/bash | |
# TODO: If you have your own Client ID and secret, put down their values here: | |
CLIENT_ID="FREE_TRIAL_ACCOUNT" | |
CLIENT_SECRET="PUBLIC_SECRET" | |
# TODO: Specify your translation requirements here: | |
fromLang="en" | |
toLang="id" | |
text="Let's have some fun!" |
This file contains 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
#!/usr/bin/env python | |
import requests | |
# TODO: If you have your own Client ID and secret, put down their values here: | |
clientId = "FREE_TRIAL_ACCOUNT" | |
clientSecret = "PUBLIC_SECRET" | |
# TODO: Specify your translation requirements here: | |
fromLang = "en" |
OlderNewer