Twitter APi “code”:215,“message”:"Bad Authentication data

巧了我就是萌 提交于 2020-02-04 11:01:15

问题


Receiving error

"code":215,"message":"Bad Authentication data"

in my $page var_dump($page);

I read that friends/exist no longer works for version 1.1 so I need to use friends/lookup to compare if one twitter user has the other twitter user befriended. Code below.

    $url = $connection->host = 'https://api.twitter.com/1.1/friendships/lookup.json?screen_name_a=' . $data3 . "&screen_name_b=".$id;
    $page = get_data($url);
    Var_dump($page);

I've narrowed it down to my guess that I am missing something in the $url variable that needs adding such has oauth but I don't know how to write this or if this is causing the error?

Can anyone show an example?

来源:https://stackoverflow.com/questions/44864094/twitter-api-code215-messagebad-authentication-data

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!