src/GoogleHelper/Apps/EmailHelper.php
public function setSignature($domain, $user, $signature)
    {
        $url     = self::BASE_URL . "{$domain}/{$user}/signature";
        $request     = <<<XML
<?xml version="1.0" encoding="utf-8"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:apps="http://schemas.google.com/apps/2006">
    <apps:property name="signature" value="{$signature}" />
</atom:entry>
XML;
        $request     = new \Google_Http_Request($url, 'PUT', array('Content-Type' => 'application/atom+xml'),
           $request);
        $httpRequest = $this->helper->getClient()
           ->getAuth()
           ->authenticatedRequest($request);

        return ($httpRequest->getResponseHttpCode() == 200);
    }
public function setSignature($domain, $user, $signature)
    {
        $url     = self::BASE_URL . "{$domain}/{$user}/signature";
        $request     = <<<XML
<?xml version="1.0" encoding="utf-8"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:apps="http://schemas.google.com/apps/2006">
    <apps:property name="signature" value="{$signature}" />
</atom:entry>
XML;
        $request     = new \Google_Http_Request($url, 'PUT', array('Content-Type' => 'application/atom+xml'),
           $request);
        $httpRequest = $this->helper->getClient()
           ->getAuth()
           ->authenticatedRequest($request);

        return ($httpRequest->getResponseHttpCode() == 200);
    }
public function setSignature ( $ domain , $ user , $ signature ) { $ url = self :: BASE_URL . "{$domain}/{$user}/signature" ; $ request =  <<<XML
<?xml version="1.0" encoding="utf-8"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:apps="http://schemas.google.com/apps/2006">
    <apps:property name="signature" value="{$signature}" />
</atom:entry>
XML ; $ request = new \ Google_Http_Request ( $ url , 'PUT' , array ( 'Content-Type' => 'application/atom+xml' ) , $ request ) ; $ httpRequest = $ this -> helper -> getClient ( ) -> getAuth ( ) -> authenticatedRequest ( $ request ) ; return ( $ httpRequest -> getResponseHttpCode ( ) == 200 ) ; }
Set a Users email signature
@param string $domain
@param string $user
@param string $signature
@return bool success
Set a Users email signature