Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit 53faab3

Browse files
committed
Merge pull request #94 from danielroseman/recent_tags
Use correct parameter in tag_recent_media
2 parents 21ba5cb + 3cb4305 commit 53faab3

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Tags: http://instagr.am/developer/endpoints/tags/
174174

175175
``` python
176176
api.tag(tag_name)
177-
api.tag_recent_media(count, max_id, tag_name)*
177+
api.tag_recent_media(count, max_tag_id, tag_name)*
178178
api.tag_search(q, count)*
179179
```
180180

instagram/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def __init__(self, *args, **kwargs):
158158

159159
tag_recent_media = bind_method(
160160
path="/tags/{tag_name}/media/recent",
161-
accepts_parameters=MEDIA_ACCEPT_PARAMETERS + ['tag_name'],
161+
accepts_parameters=['count', 'max_tag_id', 'tag_name'],
162162
root_class=Media,
163163
paginates=True)
164164

tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def test_location(self):
208208
self.api.location(1)
209209

210210
def test_tag_recent_media(self):
211-
self.api.tag_recent_media(tag_name='1', count=5)
211+
self.api.tag_recent_media(tag_name='1', count=5, max_tag_id='12345')
212212

213213
def test_tag_recent_media_paginated(self):
214214
for page in self.api.tag_recent_media(tag_name='1', count=5, as_generator=True, max_pages=2):

0 commit comments

Comments
 (0)