Verification-Request
Tool for Posting a request | Sample |
Curl | curl -XPOST -H ‘Authorization: Basic dS80NDcvYmVuam86SnZDSWYzZHV1Sg==’ -H ‘Content-Type: application/vnd.net.wyrls.Document-v3+json’ -d ‘{
“from”: “3456”, “to”: “639666707515”, “usagetype”: “2FA_TEST_BCAST”, “template”: “{CODE} is your RTE App verification code.”, “delivery_receipt_url”: “http://www.ptsv2.com/t/tawzj-1534226143/post” }’ ‘https://api.kast.ph/verification-request‘ |
Postman | {
“from”: “3456”, “to”: “639165365846”, “usagetype”: “2FA_TEST_BCAST”, “template”: “{CODE} is your RTE App verification code.”, “expires_in”:”300” } |
PHP | $url = ‘https://api.kast.ph/verification-request’; $data = array(‘from’ => ‘3456’, ‘to’ => ‘639165365846′, ‘usagetype’ => ‘RT2FA_TEST_BCAST’ ); |
Verification-Check
Tool for Posting a request | Sample |
Curl | curl -XPOST -H ‘Authorization: Basic dS80NDcvYmVuam86SnZDSWYzZHV1Sg==’ -H ‘Content-Type: application/vnd.net.wyrls.Document-v3+json’ -d ‘{
“verification_id”: “<verification_id”, “pin”: “<pin>” }’ ‘https://api.kast.ph/verification-check’ |
Postman | {
“verification_id”: “<verification_id>”, “pin”:”<pin>” } |
PHP | $url = ‘https://api.kast.ph/verification-request’; $data = array(‘verification_id’ => ‘verification_id’’, ‘pin’ => ‘<pin>’ ); // use key ‘http’ even if you send the request to https://… $options = array( ‘http’ => array( ‘header’ => “Authorization: Basic dS80NDcvYmVuam86SnZDSWYzZHV1Sg=='”, ‘method’ => ‘POST’, ‘content’ => http_build_query($data) ) ); $context = stream_context_create($options); $result = file_get_contents($url, false, $context); |