lib/Services/SubscriptionsService.php
public function update($identity, $params = array())
    {
        $path = Util::subUrl(
            '/subscriptions/:identity',
            array(
                
                'identity' => $identity
            )
        );
        if(isset($params['params'])) { 
            $params['body'] = json_encode(array($this->envelope_key => (object)$params['params']));
        
            unset($params['params']);
        }

        
        $response = $this->api_client->put($path, $params);
        

        return $this->getResourceForResponse($response);
    }
public function update($identity, $params = array())
    {
        $path = Util::subUrl(
            '/subscriptions/:identity',
            array(
                
                'identity' => $identity
            )
        );
        if(isset($params['params'])) { 
            $params['body'] = json_encode(array($this->envelope_key => (object)$params['params']));
        
            unset($params['params']);
        }

        
        $response = $this->api_client->put($path, $params);
        

        return $this->getResourceForResponse($response);
    }
public function update ( $ identity , $ params = array ( ) ) { $ path = Util :: subUrl ( '/subscriptions/:identity' , array ( 'identity' => $ identity ) ) ; if ( isset ( $ params [ 'params' ] ) ) { $ params [ 'body' ] = json_encode ( array ( $ this -> envelope_key => ( object ) $ params [ 'params' ] ) ) ; unset ( $ params [ 'params' ] ) ; } $ response = $ this -> api_client -> put ( $ path , $ params ) ; return $ this -> getResourceForResponse ( $ response ) ; }
Update a subscription

Example URL: /subscriptions/:identity

@param  string        $identity Unique identifier, beginning with "SB".
@param  string[mixed] $params   An associative array for any params
@return Subscription
Update a subscription