gpt4 book ai didi

php - Plivo 租一个号码 Api 不适合我

转载 作者:搜寻专家 更新时间:2023-10-31 21:27:01 27 4
gpt4 key购买 nike

require 'vendor/autoload.php';
use Plivo\RestAPI;

$auth_id = "My AUTH_ID";
$auth_token = "My AUTH_TOKEN";

$p = new RestAPI($auth_id, $auth_token);
$params = array(
'number' => '12512077502' # Phone number to buy
);
$response = $p->get_number($params);
print_r ($response);

它会给我错误信息

Array ( 
[status] => 404
[response] => Array (
[api_id] => 0b6214ee-aec4-11e5-ae4f-22000ac69a0d
[error] => not found
) )

请参阅此处 https://www.plivo.com/docs/getting-started/phone-number-api/#rent-a-number

最佳答案

您似乎使用了 python 帮助程序库中的错误函数 (get_number)。正确的是使用 PhoneNumber API 的“buy_phone_number”函数。

引用 - https://github.com/plivo/plivo-python/blob/master/plivo.py#L175

关于php - Plivo 租一个号码 Api 不适合我,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34524794/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com