original_string: public function addTemplateUser($template_id, $id_or_email)
      {
          $key = strpos($id_or_email, '@') ? 'email_address' : 'account_id';
  
          $response = $this->rest->post(
              static::TEMPLATE_ADD_USER_PATH . '/' . $template_id,
              array($key => $id_or_email)
          );
  
          $this->checkResponse($response);
  
          return new Template($response);
      }
code: public function addTemplateUser($template_id, $id_or_email)
      {
          $key = strpos($id_or_email, '@') ? 'email_address' : 'account_id';
  
          $response = $this->rest->post(
              static::TEMPLATE_ADD_USER_PATH . '/' . $template_id,
              array($key => $id_or_email)
          );
  
          $this->checkResponse($response);
  
          return new Template($response);
      }
code_tokens: public function addTemplateUser ( $ template_id , $ id_or_email ) { $ key = strpos ( $ id_or_email , '@' ) ? 'email_address' : 'account_id' ; $ response = $ this -> rest -> post ( static :: TEMPLATE_ADD_USER_PATH . '/' . $ template_id , array ( $ key => $ id_or_email ) ) ; $ this -> checkResponse ( $ response ) ; return new Template ( $ response ) ; }
docstring: Gives the specified Account access to the specified Template. The user can
  be designated using their account ID or email address.
  
  @param  string $template_id Template ID to give the Account access to.
  @param  string $id_or_email Account ID or email address to give access to the Template.
  @return Template
  @throws BaseException
docstring_tokens: Gives the specified Account access to the specified Template . The user can be designated using their account ID or email address .