Free Download from Twitter

I have seen several websites where people offer free video / audio / pdf file downloads if the user follows them on Twitter. Basically, the site displays a “Follow on Twitter” button, which redirects the user to twitter, forces them to follow the account, chirits the marketing message and gives a download link.

How do I start to recreate this on my own site? Is this done using the Twitters API?

thank

+3
source share
2 answers

This is most accurately done using the Twitter API.

Twitter API, , , . , ( / ).

Psuedo:

user = getTwitterUser()
list[] = getTwitterFollowers(me)
if user in list:
    if !user.hasDownload():
        selection = provideUserOptions()
        storeUserSelection(selection)
        provideSelection(selection)
+1

Twitter API REST, . friendships/create . api , , . - . , , , .

0

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


All Articles