Пример #1
0
    def getselfinfo(self):
        """Return information about your account.

        Raises hangups.NetworkError if the request fails.
        """
        request = hangouts_pb2.GetSelfInfoRequest(
            request_header=self._get_request_header_pb(),
        )
        response = hangouts_pb2.GetSelfInfoResponse()
        yield from self._pb_request('contacts/getselfinfo', request, response)
        return response
Пример #2
0
 def get_self_info(self, get_self_info_request):
     """Return info about the current user."""
     response = hangouts_pb2.GetSelfInfoResponse()
     yield from self._pb_request('contacts/getselfinfo',
                                 get_self_info_request, response)
     return response