ChimeraCoder / anaconda

A Go client library for the Twitter 1.1 API
MIT License
1.14k stars 247 forks source link

Add tweet_volume field to trend response #264

Open tomjcleveland opened 5 years ago

tomjcleveland commented 5 years ago

The /trends API has a tweet_volume field, which currently doesn't exist on the Trend struct. I've made it a pointer since the response from Twitter is often null/nil.

https://developer.twitter.com/en/docs/trends/trends-for-location/api-reference/get-trends-place

I've tested this by hand locally (I didn't see any unit tests).