-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify.php
More file actions
24 lines (24 loc) · 1.07 KB
/
verify.php
File metadata and controls
24 lines (24 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<?php
$api_key = '__YOUR_API_KEY__';
$api_secret = '__YOUR_API_SECRET__';
$timestamp = time();
$salt = uniqid();
$data = strval($timestamp) . $salt;
$signature = hash_hmac('md5', $data, $api_secret);
?>
<html lang="ko">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<form method="post" action="https://api.coolsms.co.kr/senderid/1.1/verify">
API Key: <input type="text" name="api_key" value="<?php echo $api_key ?>" /><br />
Timestamp: <input type="text" name="timestamp" value="<?php echo $timestamp ?>" /><br />
Salt: <input type="text" name="salt" value="<?php echo $salt ?>" /><br />
Signature: <input type="text" name="signature" value="<?php echo $signature ?>" /><br />
Handle Key: <input type="text" name="handle_key" value="" /><br />
<input type="submit" value="Submit" />
</form>
</body>
</html>