projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
548810c
)
Require lat and long parameters for API.trends_closest
author
Harmon
<Harmon758@gmail.com>
Fri, 19 Feb 2021 04:15:15 +0000
(22:15 -0600)
committer
Harmon
<Harmon758@gmail.com>
Fri, 19 Feb 2021 04:15:15 +0000
(22:15 -0600)
tweepy/api.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/api.py
b/tweepy/api.py
index adb9502bc504a365b76db465971ba0bfbbf9ff80..c4c4a69533afdf15943a10fce3488dc3b6fd2ce0 100644
(file)
--- a/
tweepy/api.py
+++ b/
tweepy/api.py
@@
-1125,11
+1125,11
@@
class API:
)
@payload('json')
- def trends_closest(self, *args, **kwargs):
+ def trends_closest(self,
lat, long,
*args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/trends/locations-with-trending-topics/api-reference/get-trends-closest
"""
return self.request(
- 'GET', 'trends/closest', *args, endpoint_parameters=(
+ 'GET', 'trends/closest',
lat, long,
*args, endpoint_parameters=(
'lat', 'long'
), **kwargs
)