+------------------------------------------+-------------------------------------+
| `GET lists/memberships`_ | :meth:`API.get_list_memberships` |
+------------------------------------------+-------------------------------------+
- | `GET lists/ownerships`_ | :meth:`API.lists_ownerships` |
+ | `GET lists/ownerships`_ | :meth:`API.get_list_ownerships` |
+------------------------------------------+-------------------------------------+
| `GET lists/show`_ | :meth:`API.get_list` |
+------------------------------------------+-------------------------------------+
.. automethod:: API.get_list_memberships
-.. automethod:: API.lists_ownerships
+.. automethod:: API.get_list_ownerships
.. automethod:: API.get_list
def testgetlistmemberships(self):
self.api.get_list_memberships()
- @tape.use_cassette('testlistsownerships.json')
- def testlistsownerships(self):
- self.api.lists_ownerships()
+ @tape.use_cassette('testgetlistownerships.json')
+ def testgetlistownerships(self):
+ self.api.get_list_ownerships()
@tape.use_cassette('testlistssubscriptions.json')
def testlistssubscriptions(self):
@pagination(mode='cursor')
@payload('list', list=True)
- def lists_ownerships(self, **kwargs):
- """lists_ownerships(*, user_id, screen_name, count, cursor)
+ def get_list_ownerships(self, **kwargs):
+ """get_list_ownerships(*, user_id, screen_name, count, cursor)
Returns the lists owned by the specified user. Private lists will only
be shown if the authenticated user is also the owner of the lists. If
def list_memberships(self, *args, **kwargs):
return self._api.get_list_memberships(user_id=self.id, *args, **kwargs)
- def lists_ownerships(self, *args, **kwargs):
- return self._api.lists_ownerships(user_id=self.id, *args, **kwargs)
+ def list_ownerships(self, *args, **kwargs):
+ return self._api.get_list_ownerships(user_id=self.id, *args, **kwargs)
def lists_subscriptions(self, *args, **kwargs):
return self._api.lists_subscriptions(user_id=self.id, *args, **kwargs)