danielpronych / python-twitter

Automatically exported from code.google.com/p/python-twitter
Apache License 2.0
0 stars 0 forks source link

GetFollowerIDs() is not working #206

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Authorize account
2. Call GetFollowerIDs()
3. print return of GetFollowerIDs() 

here is code
followers=api.GetFollowerIDs()
print followers

What is the expected output? What do you see instead?
{u'errors': [{u'message': u'Not authorized to use this endpoint', u'code': 37}]}

What version of the product are you using? On what operating system?
python-twitter 0.8.2, ubuntu 10.10(64bit), Python 2.6

Please provide any additional information below.
GetFriendIDs() is working.
In Lines 2963 in "twitter.py", URL seems old.
I rewrote GetFollowerIDs(). (GetFriendIDs () was referring to.)
I attached this one. "getfollowerids.py". 
Please check.(I confirmed this to working correctly.)

Original issue reported on code.google.com by halka.r...@gmail.com on 16 Aug 2011 at 1:33

Attachments:

GoogleCodeExporter commented 8 years ago
if you change line 2963 to:

url = 'http://api.twitter.com/1/followers/ids.json'

this function works again. looks like its just an old url from earlier versions 
of the twitter api

Original comment by lmu...@gmail.com on 12 Nov 2011 at 1:59

GoogleCodeExporter commented 8 years ago
committed changeset 235:cec8703b7782

Original comment by bear42 on 3 Dec 2011 at 9:31

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
shouldn't the fix really be?:

    url = '%s/followers/ids.json' % self.base_url

Original comment by ja...@jasonwiener.com on 29 Feb 2012 at 11:54

GoogleCodeExporter commented 8 years ago
I am unable to edit the twitter.py file. And the only difference I can see is 
the URL is 'https://api.twitter.com/1/followers/ids.json'    instead of 
'http://api.twitter.com/1/followers/ids.json'

https instead of http. Is that the only difference? Or do I need to change some 
other URL? 

Original comment by nikhil.b...@gmail.com on 15 Mar 2013 at 2:50