Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Friends of a Friend #4

Closed
GoogleCodeExporter opened this issue Nov 19, 2015 · 3 comments
Closed

Getting Friends of a Friend #4

GoogleCodeExporter opened this issue Nov 19, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

Trying to follow http://twitter.com/pythoncoders/with_friends but don't see
any possibility to fetch the time lines of all the friends ('with_friends')
of my friend 'pythoncoders'.

Your api doesn't provide an id parameter for GetFriendsTimeline - so i
can't do that. 

Or do i miss something ?

Original issue reported on code.google.com by Steffen....@gmail.com on 15 May 2007 at 11:54

@GoogleCodeExporter
Copy link
Author

Something like that:

  def GetFriendsTimeline(self, username, password, id=None):
    '''Fetch the sequence of twitter.Status messages for a user\'s friends

    Args:
      username: Your username 
      password: Your password 
      id: The id or username to be fetched      

    Returns:
      A sequence of twitter.Status instances, one for each message
    '''
    url = 'http://twitter.com/statuses/friends_timeline'
    if id != None:
        url += '/' + id
    url += '.json'
    json = self._FetchUrl(url, username=username, password=password)
    data = simplejson.loads(json)
    return [Status.NewFromJsonDict(x) for x in data]

But than this is also true for GetFriend or more common for all calls with an
possible id parameter.

Original comment by Steffen....@gmail.com on 15 May 2007 at 12:13

@GoogleCodeExporter
Copy link
Author

Accepting.

Original comment by dclinton on 22 May 2007 at 5:59

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Fixed in SVN.

Original comment by dclinton on 3 Jun 2007 at 8:47

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant