(self, id_member)
return membership.json()
Get the member.
Get the member.
Get the member .
def get_member(self, id_member):
        """
        Get the member.
        """
        try:
            membership = requests.get(f'{self.MEMBER_ENPOINT}/{id_member}', params=self.auth)
            membership.raise_for_status()
        except requests.exceptions.HTTPError as e:
            if e.response.status_code == 429:
                raise Exception('Timeout, please try in 900 secondes') from e
            else:
                raise e

        return membership.json()
def get_member ( self , id_member ) : try : membership = requests . get ( f'{self.MEMBER_ENPOINT}/{id_member}' , params = self . auth ) membership . raise_for_status ( ) except requests . exceptions . HTTPError as e : if e . response . status_code == 429 : raise Exception ( 'Timeout, please try in 900 secondes' ) from e else : raise e return membership . json ( )