我正在使用 tinder api。我想通过 tinder api 向 tinder 帐户中的所有匹配项发送消息。但是每次我希望将消息发送到匹配项时,我都会收到 http_code=500 错误。我还尝试更新 bio 并且 bio 已成功更新,但无法通过传递 \u000A 代替句号将 bio 拆分为不同的换行符。火种支持 unicode 吗?
我在php中的代码片段如下:
$data = callCurl("httxx://api.gotinder.com/user/recs", 'GET', $headers);
//print_r($data);
if (!empty($data['results']))
$profiles = $data['results'];
else
return("\nNo more recommendations\n");
foreach($profiles as $profile)
{
unset($profile['photos']);
//echo $profile["_id"];
$x=$x+1;
sleep(1);
$match = callCurl("httxx://api.gotinder.com/like/" . $profile["_id"], "GET", $headers);
//print_r($match);
$match = (bool)$match['match'];
if($match)
{
echo "\nMATCHED!!!!!!!!!!!\n";
$data_m_ = array("message"=> $message,
);
$msgres=callCurl("https://api.gotinder.com/user/matches/" . $profile["_id"], "POST", $headers, $data_m);
if($msgres['http_code']!=200)
echo "Message not sent"; // $msgres['http_code'] returns 500
}
echo ".";
if($x==100)
{
mysql_query("update tinder_accounts set account_status=1 where id='$blog_id_1'");
return("\n100 LIKES EXCEEDED.\n");
}
}
请在这个问题上提供帮助,我将永远感谢帮助我的人。谢谢克里什