Display Tweet list if there are a new Tweet

javascript

#1

Hi,

I create an HTML page to display some information about us for our user.

When the user open the HTML page, I would like to display a popup with the list of our Tweet but only if there are a new tweet since the last time they open this HTML page.

I found how to display the list of tweet from an account but I didn’t find how I can do to count the number of tweet and display the list only if there are a new tweet.

Thanks for your answer


#2

Hi @FeyteFlorian,

You might be able to use Twitter’s standard API to achieve your goal. There’s no out-of-the-box solution for this though.

Check out this page: https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-user_timeline.html.


#3

Hi,

Thanks for the link

But there are somethink I don’t understand.
I make a test with this GET request “https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=CWFSupport&count=2
And I have an error 400 as return (normal)

I try to find how I can use the authentification but it always said me to create an application.
I don’t want to create an application. I just create a HTML page with information.

Could yopu please guide me for the authentification ?
Are there something I don’t understood ?

Thanks


#4

That’s correct, in order to use the API as @evansobkowicz suggests, you do need to create an app and use OAuth to authenticate your calls. It is not as simple as creating an HTML snippet. As mentioned, there’s no out-of-the-box HTML only solution to what you’re looking to achieve.


#5

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.