How to return a user's tweets?

I want to show all recent tweets of @ANWBverkeer in a layout.

I think I have to use “GET statuses/user_timeline”, but I am not sure about these two settings.

Do I need to change these or…?

Also, when I click on ‘Get OAuth Signature’, I get this:

Signature base string
GET&https%3A%2F%2Fapi.twitter.com%2F1.1%2Fstatuses%2Fuser_timeline.json&count%3D2%26oauth_consumer_key%3DQ7nnvcVqEXYPSl8YmrQ82OaEK%26oauth_nonce%3D42f31a880d57b1234691aa3e6385a907%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1446711817%26oauth_version%3D1.0%26screen_name%3Dtwitterapi

Authorization header
Authorization: OAuth
oauth_consumer_key=“Q7nnvcVqEXYPSl8YmrQ82OaEK”,
oauth_nonce=“42f31a880d57b1234691aa3e6385a907”,
oauth_signature=“lwkqWK6C39%2BRHpCC%2BdJP7ch0Fdg%3D”,
oauth_signature_method=“HMAC-SHA1”, oauth_timestamp=“1446711817”,
oauth_version=“1.0”

cURL command
curl --get
https://api.twitter.com/1.1/statuses/user_timeline.json’ --data
‘count=2&screen_name=twitterapi’ --header ‘Authorization: OAuth
oauth_consumer_key=“Q7nnvcVqEXYPSl8YmrQ82OaEK”,
oauth_nonce=“42f31a880d57b1234691aa3e6385a907”,
oauth_signature=“lwkqWK6C39%2BRHpCC%2BdJP7ch0Fdg%3D”,
oauth_signature_method=“HMAC-SHA1”, oauth_timestamp=“1446711817”,
oauth_version=“1.0”’ --verbose

What do I need to do with this?

I am sure you already did all of this, but just in case:
Twitter manual
Curl

As for the twitter module itself

from:ANWBverkeer

and ‘recent’ Should be enough

If not you can always use this https://twitter.com/search-advanced?lang=en

2 Likes

Adding [Tweet] [User] [Date] [ProfileImage] to the template and ‘from:ANWBverkeer’ to the search term made it work. :smile:

Is it also possible to add a map with traffic jams to a layout?
For example, this one: http://www.anwb.nl/verkeer