我使用的是tinder api。我想通过tinder api发送消息到所有火柴帐户中。但是每次我想向比赛发送消息时,我都会得到http_code=500错误。我还尝试更新bio,bio更新成功,但无法通过传递\u000A代替句号将bio拆分到不同的行提要中。tinder支持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");
}
}在这个问题上请帮助我,我将永远感谢帮助我的人。谢谢Krish
发布于 2015-12-06 22:51:17
我看不出您是否正确发送了身份验证令牌,但您似乎没有。从登录到发送消息的头部是不同的。在发送消息时,还需要发送x-auth标头。休息看起来很好。
https://stackoverflow.com/questions/33741554
复制相似问题