public function inviteTeamMember($id_or_email)
    {
        $key = strpos($id_or_email, '@') ? 'email_address' : 'account_id';

        $response = $this->rest->post(
            static::TEAM_ADD_MEMBER_PATH,
            array($key => $id_or_email)
        );

        $this->checkResponse($response);

        return new Team($response);
    }
public function inviteTeamMember($id_or_email)
    {
        $key = strpos($id_or_email, '@') ? 'email_address' : 'account_id';

        $response = $this->rest->post(
            static::TEAM_ADD_MEMBER_PATH,
            array($key => $id_or_email)
        );

        $this->checkResponse($response);

        return new Team($response);
    }
public function inviteTeamMember ( $ id_or_email ) { $ key = strpos ( $ id_or_email , '@' ) ? 'email_address' : 'account_id' ; $ response = $ this -> rest -> post ( static :: TEAM_ADD_MEMBER_PATH , array ( $ key => $ id_or_email ) ) ; $ this -> checkResponse ( $ response ) ; return new Team ( $ response ) ; }
Adds the specified Account to the current Team

@param  string $id_or_email Account ID or email address of the Account to invite
@return Team
@throws BaseException
Adds the specified Account to the current Team