• 说明
该脚本可以完成,调用后,会有一个国外的电话给需要的手机打电话,对方不接听那么就不收费。
  • 调用
http://116.251.211.183:82/gaojing.php?to
  • 脚本
<?php
$phonenumber = $_GET['to'];
$params = [
    'api_key' => 'key',
    'api_secret' => 'value',
    'to' => "86".$phonenumber,
    'from' => '17097014537',
    'text' => 'Hello from Nexmo',
];

$url = 'https://api.nexmo.com/tts/json?' . http_build_query($params);

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
print $response;
?>
Copyright © opschina.org 2017 with zzlyzq@gmail.com all right reserved,powered by Gitbook该文件修订时间: 2017-07-26 14:40:05

results matching ""

    No results matching ""