pub async fn group_remove_member(&self, group_id: &str, email: &str) -> Result<(), APIError> {
        // Build the request.
        let request = self.request(DIRECTORY_ENDPOINT, Method::DELETE, &format!("groups/{}/members/{}", group_id, email), (), None);

        let resp = self.client.execute(request).await.unwrap();
        match resp.status() {
            StatusCode::OK => (),
            s => {
                return Err(APIError {
                    status_code: s,
                    body: resp.text().await.unwrap(),
                });
            }
        };

        Ok(())
    }
/// Remove a user as a member of a Google group.
Remove a user as a member of a Google group.
Remove a user as a member of a Google group .
pub async fn group_remove_member(&self, group_id: &str, email: &str) -> Result<(), APIError> {
        // Build the request.
        let request = self.request(DIRECTORY_ENDPOINT, Method::DELETE, &format!("groups/{}/members/{}", group_id, email), (), None);
        let resp = self.client.execute(request).await.unwrap();
        match resp.status() {
            StatusCode::OK => (),
            s => {
                return Err(APIError {
                    status_code: s,
                    body: resp.text().await.unwrap(),
                });
            }
        };
        Ok(())
    }
pub async fn group_remove_member ( & self , group_id : & str , email : & str ) -> Result < ( ) , APIError > { // Build the request. let request = self . request ( DIRECTORY_ENDPOINT , Method :: DELETE , & format ! ( " " group_id email ) , ( ) , None ) ; let resp = self . client . execute ( request ) . await . unwrap ( ) ; match resp . status ( ) { StatusCode :: OK => ( ) , s => { return Err ( APIError { status_code : s , body : resp . text ( ) . await . unwrap ( ) , } ) ; } } ; Ok ( ( ) ) }
Remove a user as a member of a Google group.
Remove a user as a member of a Google group .
&self
group_id
&str
email
&str
&self
group_id
&str
email
&str