Twitter API: How to find out which application was used to

In the email notification we can see something like

<username> followed you using <appname>.

It's great. But is there a way to find out the name of the application using the API?

+2
source share
1 answer

I looked at the REST API and I could not find anything that could support this. I assume this is a twitter.com feature available in the API (for now).

, , / /. . , , (, PeopleBrowr SocialOomph), . status , , .

, , , , API ( , .)

, , , . - , , , . , , , .

( #), URI :

Match m = Regex.Match(input, @"followed you using\s*<a[^""]+""(?<appUri>[^""]+)""[^>]+>(?<appName>\w*)</a>");

m.Groups["appName"].Value, , m.Groups["appUri"].Value, URI .

,

Match m = Regex.Match(user, @"\(@<a[^>]+>(?<screenName>\w*)</a>\) is now following");

m.Groups["screenName"].Value .

+2

Source: https://habr.com/ru/post/1788461/


All Articles