public function get_by_email( $email, $args = array() ) {

		$this->set_request_args( array(
			'method' => 'GET',
			'path'   => array( 'email', urlencode( $email ) ),
			'params' => $args,
		) );

		return $this->do_request();
	}
public function get_by_email( $email, $args = array() ) {

		$this->set_request_args( array(
			'method' => 'GET',
			'path'   => array( 'email', urlencode( $email ) ),
			'params' => $args,
		) );

		return $this->do_request();
	}
public function get_by_email ( $ email , $ args = array ( ) ) { $ this -> set_request_args ( array ( 'method' => 'GET' , 'path' => array ( 'email' , urlencode ( $ email ) ) , 'params' => $ args , ) ) ; return $ this -> do_request ( ) ; }
Get customer by email

GET /customers/email/{email}

@since 2.0
@param string $email customer's email
@param array $args acceptable customer email lookup endpoint args, currently only `fields`
@return array|object customer!
Get customer by email