GET
https://api.alatwa.com/device/scan/{device_id}
Headers
| Name | Type | | Description |
| Authorization |
string |
required |
API Key akun Alat WA Anda |
Path Parameters
| Name | Type | | Description |
| device_id |
string |
required |
Device ID dari akun Alat WA |
Code Examples
curl -X GET https://api.alatwa.com/device/scan/YOUR_DEVICE_ID \
-H "Authorization: YOUR_API_KEY"
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.alatwa.com/device/scan/YOUR_DEVICE_ID');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: YOUR_API_KEY'
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
const response = await fetch('https://api.alatwa.com/device/scan/YOUR_DEVICE_ID', {
headers: {
'Authorization': 'YOUR_API_KEY'
}
});
const data = await response.json();
import requests
response = requests.get(
'https://api.alatwa.com/device/scan/YOUR_DEVICE_ID',
headers={'Authorization': 'YOUR_API_KEY'}
)
data = response.json()
Response
200 Success
{
"status": "ok",
"message": "Wait for qr code in webhook"
}