Ejemplo n.º 1
0
 def likes_(self, limit=100, all=True):
     """
     :param limit:
     :param all:
     :return: Lazy generator of Like Objects
     """
     source, edge = self.id, "likes"
     return lazygen(Like, source, edge, limit=limit, get_all=all)
Ejemplo n.º 2
0
 def posts_(self, limit=100, all=True):
     """
     :param limit:
     :param all:
     :return: Lazy generator of Post Objects
     """
     source, edge = self.id, "feed"
     return lazygen(Post, source, edge, limit=limit, get_all=all)
Ejemplo n.º 3
0
 def comments_(self, limit=100, all=True):
     """
     :param limit:
     :param all:
     :return: Lazy generator of Comment Objects
     """
     source, edge = self.id, "comments"
     return lazygen(Comment, source, edge, limit=limit, get_all=all)
Ejemplo n.º 4
0
 def posts_(self, limit=100, all=True):
     """
     :param limit:
     :param all:
     :return: Lazy generator of Post Objects
     """
     source, edge = self.id, "feed"
     return lazygen(
         Post, source, edge, limit=limit, get_all=all
     )
Ejemplo n.º 5
0
 def likes_(self, limit=100, all=True):
     """
     :param limit:
     :param all:
     :return: Lazy generator of Like Objects
     """
     source, edge = self.id, "likes"
     return lazygen(
         Like, source, edge, limit=limit, get_all=all
     )
Ejemplo n.º 6
0
 def comments_(self, limit=100, all=True):
     """
     :param limit:
     :param all:
     :return: Lazy generator of Comment Objects
     """
     source, edge = self.id, "comments"
     return lazygen(
         Comment, source, edge, limit=limit, get_all=all
     )
Ejemplo n.º 7
0
 def messages(self, limit=10, all=False):
     source, edge = self.id, "comments"
     return lazygen(Message, source, edge, limit=limit, get_all=all)
Ejemplo n.º 8
0
 def posts(self, limit=100, all=False):
     """return an iterable of posts"""
     source, edge = self.id, "feed"
     return lazygen(Post, source, edge, limit=limit, get_all=all)
Ejemplo n.º 9
0
 def comments(self, limit=100, all=False):
     """return an iterable of posts"""
     source, edge = self.id, "comments"
     return lazygen(Comment, source, edge, limit=limit, get_all=all)
Ejemplo n.º 10
0
 def groups(self, limit=100, all=False):
     """return an interable of groups"""
     source, edge = "me", "groups"
     return lazygen(Group, source, edge, limit, all)
Ejemplo n.º 11
0
 def inbox(self, limit=100, all=False):
     source, edge = "me", "inbox"
     return lazygen(InboxThread, source, edge, limit, all)
Ejemplo n.º 12
0
 def groups(limit=100, all=True):
     source, edge = "me", "groups"
     return lazygen(Group, source, edge, limit, all)
Ejemplo n.º 13
0
 def posts(self, limit=100, all=False):
     """return an iterable of posts"""
     source, edge = self.id, "feed"
     return lazygen(Post, source, edge,
                    limit=limit, get_all=all)
Ejemplo n.º 14
0
 def comments(self, limit=100, all=False):
     """return an iterable of posts"""
     source, edge = self.id, "comments"
     return lazygen(Comment, source, edge,
                    limit=limit, get_all=all)
Ejemplo n.º 15
0
 def messages(self, limit=10, all=False):
     source, edge = self.id, "comments"
     return lazygen(Message, source, edge,
                    limit=limit, get_all=all)