emoncms / event_archived

Setup actions to occur when a feed goes above, below or is equal a set value. Set another feed or send an email
8 stars 25 forks source link

Fix Twitter notifications #21

Closed nathanchantrell closed 10 years ago

nathanchantrell commented 10 years ago

Fixed to work with Twitter API 1.1 Switched from tmhOAuth to J7mbo's twitter-api-php and added the time to each tweet so it isn't seen as a duplicate.

Maybe there is a better solution to the duplicate tweet issue but it is one I've used successfully elsewhere. It used to be that it only had to be different to that last tweet but that isn't always the case. Twitter say on duplicates: "We don't disclose the timeframe within which duplicative tweets are disallowed. It's not necessarily within a time period and may pertain more to the recent tweeting history of the account, or be a mixture of other factors."