lib/Services/SubscriptionsService.php
public function get($identity, $params = array())
    {
        $path = Util::subUrl(
            '/subscriptions/:identity',
            array(
                
                'identity' => $identity
            )
        );
        if(isset($params['params'])) { $params['query'] = $params['params'];
            unset($params['params']);
        }

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

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

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

        return $this->getResourceForResponse($response);
    }
public function get ( $ identity , $ params = array ( ) ) { $ path = Util :: subUrl ( '/subscriptions/:identity' , array ( 'identity' => $ identity ) ) ; if ( isset ( $ params [ 'params' ] ) ) { $ params [ 'query' ] = $ params [ 'params' ] ; unset ( $ params [ 'params' ] ) ; } $ response = $ this -> api_client -> get ( $ path , $ params ) ; return $ this -> getResourceForResponse ( $ response ) ; }
Get a single 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
Get a single subscription