[英]Authy PHP - You are not passing the user params correctly
我正在使用Authy PHP包裝器(authy-php),但是當我創建一個新用戶時,我得到了
您沒有正確傳遞用戶參數
require("./vendor/autoload.php");
$authy_api = new Authy\AuthyApi('My API Key here');
$user = $authy_api->registerUser('g.******@*****.co.uk', '7***-9**-9**', '44');
if($user->ok()){
print "<pre>";
print_r($user);
print "</pre>";
}else{
foreach($user->errors() as $field => $message) {
printf("$field = $message");
}
}
發現了這個問題,試圖阻止localhost SSL弄亂我的腳本,我停止了ip解析。 但是放回去就行了。
我覺得很傻。
對於在本地主機上測試Authy的用戶,只需在AuthyApi.php上將Guzzle HTTP的默認值設置為verify = false即可。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.