Anda diwajibkan mengirim pesan yang berisi email dan password anda ke alamat URL : https://qithy.my.id/api/token, dengan method GET dan parameter: 'email': 'email anda', 'password': 'password anda'.
Kemudian anda akan mendapatkan balasan token, yang mana anda dapat mengirimkan kembali token ini ke alamat URL : https://qithy.my.id:8000/send-message, dengan menyertakan : 'email': 'email anda', 'token': token, 'id':'nama server/layanan', 'message':'Isi pesan anda', 'number':'08xxxxxxx'
Gunakan ajax untuk mengirim pesan, seperti dibawah ini:
**Mengirim Pesan Text**
$.ajax({
url: "https://qithy.my.id/api/token",
method: "GET",
data: {'email': 'email anda', 'password': 'password anda'}
})
.done(function(data){
let token = data. Token;
$.ajax({
url: "https://qithy.my.id:8000/send-message",
method: "GET",
data: {'email': 'email anda', 'token': token, 'id':'nama server/layanan', 'message':'Isi pesan anda', 'number':'08xxxxxxx'}
});
});
**Mengirim Pesan Gambar via URL**
$.ajax({
url: "https://qithy.my.id/api/token",
method: "GET",
data: {'email': 'email anda', 'password': 'password anda'}
})
.done(function(data){
let token = data. Token;
$.ajax({
url: "https://qithy.my.id:8000/send-media-url",
method: "GET",
data: {'email': 'email anda', 'token': token, 'id':'nama server/layanan', 'number':'08xxxxxxx', 'caption':'Isi Caption', 'fileurl':'https://gambar.png'}
});
});
**Mengirim Pesan Gambar via File**
$.ajax({
url: "https://qithy.my.id/api/token",
method: "GET",
data: {'email': 'email anda', 'password': 'password anda'}
})
.done(function(data){
let token = data. Token;
$.ajax({
url: "https://qithy.my.id:8000/send-media-file",
method: "POST",
data: {'email': 'email anda', 'token': token, 'id':'nama server/layanan', 'number':'08xxxxxxx', 'caption':'Isi Caption', 'fileattach':'https://gambar.png'}
});
});
===========================================================================================================
**Mengirim Pesan Text**
function kirimpesan(message,number,server){
setTimeout(() => {
$.get("https://qithy.my.id/api/token",{email:'email@anda.com',password:'xxxxxxxx'})
.done(function(data){
let token = data.token;
$.get("https://qithy.my.id:8000/send-message",{email:'email@anda.com','token': token, message:message, number:number,id:server})
.done(function(data){
});
});
}, 1000);
}
**Mengirim Pesan Gambar via URL**
function kirimpesan(message,number,server){
setTimeout(() => {
$.get("https://qithy.my.id/api/token",{email:'email@anda.com',password:'xxxxxxxx'})
.done(function(data){
let token = data.token;
$.get("https://qithy.my.id:8000/send-media-url",{email:'email@anda.com','token': token, number:number, id:server, 'caption':'Isi Caption', 'fileurl':'https://gambar.png'})
.done(function(data){
});
});
}, 1000);
}
**Mengirim Pesan Gambar via File**
function kirimpesan(message,number,server){
setTimeout(() => {
$.get("https://qithy.my.id/api/token",{email:'email@anda.com',password:'xxxxxxxx'})
.done(function(data){
let token = data.token;
$.get("https://qithy.my.id:8000/send-media-file",{email:'email@anda.com','token': token, number:number, id:server, 'caption':'Isi Caption', 'fileattach':'https://gambar.png'})
.done(function(data){
});
});
}, 1000);
}
===========================================================================================================
**Mengirim Pesan Text**
$urltoken="https://qithy.my.id/api/token?email=email@anda.com&password=xxxxxxxx";
$response = Http::get($urltoken);
$token = $response["token"];
$urlpesan="https://qithy.my.id:8000/send-message?email=email@anda.com&token=".$token."&id=server&number=08xxxxxxxxxx&message=Isi pesan";
$response = Http::get($urlpesan);
**Mengirim Pesan Gambar via URL**
$urltoken="https://qithy.my.id/api/token?email=email@anda.com&password=xxxxxxxx";
$response = Http::get($urltoken);
$token = $response["token"];
$urlpesan="https://qithy.my.id:8000/send-media-url?email=email@anda.com&token=".$token."&id=server&number=08xxxxxxxxxx&caption=Isi Caption&fileurl=https://gambar.png";
$response = Http::get($urlpesan);
**Mengirim Pesan Gambar via File**
<form action="https://qithy.my.id:8000/send-media-file?" id="myForm" class="form-horizontal" method="post" enctype="multipart/form-data">
<div class="form-group">
<label class="control-label col-sm-2" for="email">Email:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="email" name="email" placeholder="" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="token">Token:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="token" name="token" placeholder="" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="id">ID:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="id" name="id" placeholder="" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="number">Number:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="number" name="number" placeholder="" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="caption">Caption:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="caption" name="caption" placeholder="" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="fileattach">Attachment:</label>
<div class="col-sm-10">
<input type="file" class="form-control" id="fileattach" name="fileattach" placeholder="" value="">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" id="submit" class="btn btn-primary col-md-5" value="OK">Submit</button>
</div>
</div>
</form>
<script>
$.ajax({
url: "https://qithy.my.id/api/token",
method: "GET",
data: {'email': 'email@anda.com', 'password': 'xxxxxxx'}
})
.done(function(data){
let token = data.token;
$("#token").val(token);
});
</script>
===========================================================================================================
**Mengirim Pesan Text**
$uri = "https://qithy.my.id/api/token?email=email@anda.com&password=xxxxxxxxx";
$user = json_decode(
file_get_contents($uri )
);
$token=$user->token;
$pesan="isi pesan";
$urimessage = "https://qithy.my.id:8000/send-message?email=email@anda.com&token=".$token."&id=nama_server_anda&message=".urlencode($pesan)."&number=08xxxxxxxxx";
$uripesan=file_get_contents($urimessage);
**Mengirim Pesan Gambar via URL**
$uri = "https://qithy.my.id/api/token?email=email@anda.com&password=xxxxxxxxx";
$user = json_decode(
file_get_contents($uri )
);
$token=$user->token;
$pesan="isi pesan";
$urimessage = "https://qithy.my.id:8000/send-media-url?email=email@anda.com&token=".$token."&id=nama_server_anda&number=08xxxxxxxxx&caption=".urlencode($Isi_Caption)."&fileurl=https://gambar.png";
$uripesan=file_get_contents($urimessage);
**Mengirim Pesan Gambar via File**
<form action="https://qithy.my.id:8000/send-media-file?" id="myForm" class="form-horizontal" method="post" enctype="multipart/form-data">
<div class="form-group">
<label class="control-label col-sm-2" for="email">Email:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="email" name="email" placeholder="" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="token">Token:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="token" name="token" placeholder="" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="id">ID:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="id" name="id" placeholder="" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="number">Number:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="number" name="number" placeholder="" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="caption">Caption:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="caption" name="caption" placeholder="" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="fileattach">Attachment:</label>
<div class="col-sm-10">
<input type="file" class="form-control" id="fileattach" name="fileattach" placeholder="" value="">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" id="submit" class="btn btn-primary col-md-5" value="OK">Submit</button>
</div>
</div>
</form>
<script>
$.ajax({
url: "https://qithy.my.id/api/token",
method: "GET",
data: {'email': 'email@anda.com', 'password': 'xxxxxxx'}
})
.done(function(data){
let token = data.token;
$("#token").val(token);
});
</script>
Anda diwajibkan mengirim pesan yang berisi email dan password anda ke alamat URL : https://qithy.my.id/api/token, dengan method GET dan parameter: 'email': 'email anda', 'password': 'password anda'.
Kemudian anda akan mendapatkan balasan token, yang mana anda dapat mengirimkan kembali token ini ke alamat URL : https://qithy.my.id:8000/send-message, dengan menyertakan : 'email': 'email anda', 'token': token, 'id':'nama server/layanan', 'message':'Isi pesan anda', 'number':'08xxxxxxx'
Gunakan ajax untuk mengirim pesan, seperti dibawah ini:
**Mengirim Pesan Text**
$.ajax({
url: "https://qithy.my.id/api/token",
method: "GET",
data: {'email': 'email anda', 'password': 'password anda'}
})
.done(function(data){
let token = data. Token;
$.ajax({
url: "https://qithy.my.id:8000/send-message",
method: "GET",
data: {'email': 'email anda', 'token': token, 'id':'nama server/layanan', 'message':'Isi pesan anda', 'number':'08xxxxxxx'}
});
});
**Mengirim Pesan Gambar via URL**
$.ajax({
url: "https://qithy.my.id/api/token",
method: "GET",
data: {'email': 'email anda', 'password': 'password anda'}
})
.done(function(data){
let token = data. Token;
$.ajax({
url: "https://qithy.my.id:8000/send-media-url",
method: "GET",
data: {'email': 'email anda', 'token': token, 'id':'nama server/layanan', 'number':'08xxxxxxx', 'caption':'Isi Caption', 'fileurl':'https://gambar.png'}
});
});
**Mengirim Pesan Gambar via File**
$.ajax({
url: "https://qithy.my.id/api/token",
method: "GET",
data: {'email': 'email anda', 'password': 'password anda'}
})
.done(function(data){
let token = data. Token;
$.ajax({
url: "https://qithy.my.id:8000/send-media-file",
method: "POST",
data: {'email': 'email anda', 'token': token, 'id':'nama server/layanan', 'number':'08xxxxxxx', 'caption':'Isi Caption', 'fileattach':'https://gambar.png'}
});
});
===========================================================================================================
**Mengirim Pesan Text**
function kirimpesan(message,number,server){
setTimeout(() => {
$.get("https://qithy.my.id/api/token",{email:'email@anda.com',password:'xxxxxxxx'})
.done(function(data){
let token = data.token;
$.get("https://qithy.my.id:8000/send-message",{email:'email@anda.com','token': token, message:message, number:number,id:server})
.done(function(data){
});
});
}, 1000);
}
**Mengirim Pesan Gambar via URL**
function kirimpesan(message,number,server){
setTimeout(() => {
$.get("https://qithy.my.id/api/token",{email:'email@anda.com',password:'xxxxxxxx'})
.done(function(data){
let token = data.token;
$.get("https://qithy.my.id:8000/send-media-url",{email:'email@anda.com','token': token, number:number, id:server, 'caption':'Isi Caption', 'fileurl':'https://gambar.png'})
.done(function(data){
});
});
}, 1000);
}
**Mengirim Pesan Gambar via File**
function kirimpesan(message,number,server){
setTimeout(() => {
$.get("https://qithy.my.id/api/token",{email:'email@anda.com',password:'xxxxxxxx'})
.done(function(data){
let token = data.token;
$.get("https://qithy.my.id:8000/send-media-file",{email:'email@anda.com','token': token, number:number, id:server, 'caption':'Isi Caption', 'fileattach':'https://gambar.png'})
.done(function(data){
});
});
}, 1000);
}
===========================================================================================================
**Mengirim Pesan Text**
$urltoken="https://qithy.my.id/api/token?email=email@anda.com&password=xxxxxxxx";
$response = Http::get($urltoken);
$token = $response["token"];
$urlpesan="https://qithy.my.id:8000/send-message?email=email@anda.com&token=".$token."&id=server&number=08xxxxxxxxxx&message=Isi pesan";
$response = Http::get($urlpesan);
**Mengirim Pesan Gambar via URL**
$urltoken="https://qithy.my.id/api/token?email=email@anda.com&password=xxxxxxxx";
$response = Http::get($urltoken);
$token = $response["token"];
$urlpesan="https://qithy.my.id:8000/send-media-url?email=email@anda.com&token=".$token."&id=server&number=08xxxxxxxxxx&caption=Isi Caption&fileurl=https://gambar.png";
$response = Http::get($urlpesan);
**Mengirim Pesan Gambar via File**
<form action="https://qithy.my.id:8000/send-media-file?" id="myForm" class="form-horizontal" method="post" enctype="multipart/form-data">
<div class="form-group">
<label class="control-label col-sm-2" for="email">Email:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="email" name="email" placeholder="" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="token">Token:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="token" name="token" placeholder="" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="id">ID:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="id" name="id" placeholder="" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="number">Number:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="number" name="number" placeholder="" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="caption">Caption:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="caption" name="caption" placeholder="" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="fileattach">Attachment:</label>
<div class="col-sm-10">
<input type="file" class="form-control" id="fileattach" name="fileattach" placeholder="" value="">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" id="submit" class="btn btn-primary col-md-5" value="OK">Submit</button>
</div>
</div>
</form>
<script>
$.ajax({
url: "https://qithy.my.id/api/token",
method: "GET",
data: {'email': 'email@anda.com', 'password': 'xxxxxxx'}
})
.done(function(data){
let token = data.token;
$("#token").val(token);
});
</script>
===========================================================================================================
**Mengirim Pesan Text**
$uri = "https://qithy.my.id/api/token?email=email@anda.com&password=xxxxxxxxx";
$user = json_decode(
file_get_contents($uri )
);
$token=$user->token;
$pesan="isi pesan";
$urimessage = "https://qithy.my.id:8000/send-message?email=email@anda.com&token=".$token."&id=nama_server_anda&message=".urlencode($pesan)."&number=08xxxxxxxxx";
$uripesan=file_get_contents($urimessage);
**Mengirim Pesan Gambar via URL**
$uri = "https://qithy.my.id/api/token?email=email@anda.com&password=xxxxxxxxx";
$user = json_decode(
file_get_contents($uri )
);
$token=$user->token;
$pesan="isi pesan";
$urimessage = "https://qithy.my.id:8000/send-media-url?email=email@anda.com&token=".$token."&id=nama_server_anda&number=08xxxxxxxxx&caption=".urlencode($Isi_Caption)."&fileurl=https://gambar.png";
$uripesan=file_get_contents($urimessage);
**Mengirim Pesan Gambar via File**
<form action="https://qithy.my.id:8000/send-media-file?" id="myForm" class="form-horizontal" method="post" enctype="multipart/form-data">
<div class="form-group">
<label class="control-label col-sm-2" for="email">Email:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="email" name="email" placeholder="" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="token">Token:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="token" name="token" placeholder="" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="id">ID:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="id" name="id" placeholder="" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="number">Number:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="number" name="number" placeholder="" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="caption">Caption:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="caption" name="caption" placeholder="" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="fileattach">Attachment:</label>
<div class="col-sm-10">
<input type="file" class="form-control" id="fileattach" name="fileattach" placeholder="" value="">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" id="submit" class="btn btn-primary col-md-5" value="OK">Submit</button>
</div>
</div>
</form>
<script>
$.ajax({
url: "https://qithy.my.id/api/token",
method: "GET",
data: {'email': 'email@anda.com', 'password': 'xxxxxxx'}
})
.done(function(data){
let token = data.token;
$("#token").val(token);
});
</script>