php - Twitter Api - 如何验证是否有人关注我

标签 php twitter-bootstrap api twitter

我在 Twitter Api 中很菜鸟,我需要帮助!那我现在有什么?我创建了一个表单,我的网站成员可以通过点击 twitter 上的关注按钮来关注某人。好的,关注的部分已经完成,但是如果成员没有关注我,当他点击“Claim Free Copy”按钮时,如果他没有关注,我该如何检查该表格? ..我认为这很难做到,但我希望你能帮助我,因为在 stackoverflow 上有最好的开发人员。所以表格看起来像这样

最佳答案

请查看this文章!

您可以调用 API像下面的例子 -
https://api.twitter.com/1.1/friendships/show.json?source_screen_name=bert&target_screen_name=ernie
然后您可以解析 JSON响应以满足您的要求。

enter image description here

关于php - Twitter Api - 如何验证是否有人关注我,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39035404/

相关文章:

javascript - 从选择多个中获取值

html - twitter bootstrap 词缀调整 div 元素的大小

javascript - Power BI API 身份验证

php - 将对象转换为数组 - 奇怪的行为

php - 在 Wordpress Events Calendar Pro 插件中获取事件类别

php - Ruby on Rails 或 PHP... 不确定

html - Bootstrap 3 : keep navbar items outside the collapse without wrapping to a new line?

html - 中心表 ==> 宽度 :100%; margin: 0 auto;) not working

python - 具有数据初始化的 CSV 列的 JSON 键值

javascript - 海妖网站 API : Generate the message signature in Google App Script