简体   繁体   English

如何在PHP中使用api获取Twitter参与率和推文详细信息?

[英]How to get twitter engagement rate and tweets details using api in php?

I am trying to get tweet(s) details and engagement rate using twitter API in php https://api.twitter.com/1.1/users/show.json?screen_name=[screen_name] 我正在尝试使用php https://api.twitter.com/1.1/users/show.json?screen_name=[screen_name]中的 twitter API获取详细信息和参与率

But using above details i get some basic user details and last tweet details by user. 但是使用上述详细信息,我可以得到一些基本的用户详细信息以及用户的最后推文详细信息。

Anyone have idea about it? 有人对此有想法吗?

You can't get engagement in api.twitter.com 您无法参与api.twitter.com

You have to use data-api.twitter.com 您必须使用data-api.twitter.com

https://developer.twitter.com/en/docs/metrics/get-tweet-engagement/overview https://developer.twitter.com/zh-CN/docs/metrics/get-tweet-engagement/overview

You can get engagement , impressions , and lot more. 您可以获得engagementimpressions等等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM