original_string: public function getSignature($domain, $user)
      {
          $url = self::BASE_URL . "{$domain}/{$user}/signature";
          $request = new \Google_Http_Request($url, 'GET', null, null);
  
          $httpRequest = $this->helper->getClient()
             ->getAuth()
             ->authenticatedRequest($request);
          if ($httpRequest->getResponseHttpCode() == 200) {
              $xmlResponse = new \SimpleXMLElement($httpRequest->getResponseBody(), 0, false, 'apps', true);
  
              return (string)$xmlResponse->children('apps', true)
                 ->attributes()->value;
          } else {
              // An error occurred.
              return null;
          }
      }
code: public function getSignature($domain, $user)
      {
          $url = self::BASE_URL . "{$domain}/{$user}/signature";
          $request = new \Google_Http_Request($url, 'GET', null, null);
  
          $httpRequest = $this->helper->getClient()
             ->getAuth()
             ->authenticatedRequest($request);
          if ($httpRequest->getResponseHttpCode() == 200) {
              $xmlResponse = new \SimpleXMLElement($httpRequest->getResponseBody(), 0, false, 'apps', true);
  
              return (string)$xmlResponse->children('apps', true)
                 ->attributes()->value;
          } else {
              // An error occurred.
              return null;
          }
      }
code_tokens: public function getSignature ( $ domain , $ user ) { $ url = self :: BASE_URL . "{$domain}/{$user}/signature" ; $ request = new \ Google_Http_Request ( $ url , 'GET' , null , null ) ; $ httpRequest = $ this -> helper -> getClient ( ) -> getAuth ( ) -> authenticatedRequest ( $ request ) ; if ( $ httpRequest -> getResponseHttpCode ( ) == 200 ) { $ xmlResponse = new \ SimpleXMLElement ( $ httpRequest -> getResponseBody ( ) , 0 , false , 'apps' , true ) ; return ( string ) $ xmlResponse -> children ( 'apps' , true ) -> attributes ( ) -> value ; } else { // An error occurred. return null ; } }
docstring: Get a Users email signature
  
  @param string $domain
  @param string $user
  @return string|null Signature or null on error
docstring_tokens: Get a Users email signature