Retrieve the stubbed resource.

@param array $params
@return object
@throws Recurly_Error
978601
function get($params = null) {
    $uri = self::_uriWithParams($this->_href, $params);
    $object = self::_get($uri, $this->_client);
    if ($this->_href && !$object->getHref()) {
      $object->setHref($this->_href);
    }
    return $object;
  }
775559
public function get( $uri, array $params = array() )
    {
        $this->_client->setMethod('GET');
        return $this->_request($uri, $params);
    }
130394
private function recurseGet($levels, $inputs)
    {
        if (!is_array($levels)) {
            if (is_null($inputs) || $inputs === false) {
                $inputs = '';
            }
            return $inputs;
        }
        foreach($levels as $key => $next) {
            if (Accessor::has($inputs, $key)) {
                return $this->recurseGet($next, Accessor::get($inputs, $key));
            }
            break;
        }
        return null;
    }
815300
public function getAuthURL(array $params = null):UriInterface{

		$params = array_merge(
			$params ?? [],
			['oauth_token' => $this->getRequestToken()->accessToken]
		);

		return $this->uriFactory->createUri(Psr7\merge_query($this->authURL, $params));
	}
638689
public function get(array $params = [])
    {
        $this->getLogger()->info('Getting list of Playlists');
        if (isset($params['embed']))
            $embed = ($params['embed'] != null) ? explode(',', $params['embed']) : [];

        $hydratedWidgets = [];
        $entries = [];

        $response = $this->doGet('/playlist', $params);
        foreach ($response as $item) {
            /** @var XiboPlaylist $playlist */
            $playlist = new XiboPlaylist($this->getEntityProvider());
            $playlist->hydrate($item);
            if (in_array('widgets', $embed) === true) {
                foreach ($playlist->widgets as $widget) {
                    /** @var XiboWidget $widgetObject */
                    $widgetObject = new XiboWidget($this->getEntityProvider());
                    $widgetObject->hydrate($widget);
                    $hydratedWidgets[] = $widgetObject;
                }
                $playlist->widgets = $hydratedWidgets;
            }
            $entries[] = clone $playlist;
        }

        return $entries;
    }
91288
public static function getCurrentUrlWithoutGenericFilters($params)
    {
        // unset all filter query params so the related report will show up in its default state,
        // unless the filter param was in $queryParams
        $genericFiltersInfo = DataTableGenericFilter::getGenericFiltersInformation();
        foreach ($genericFiltersInfo as $filter) {
            foreach ($filter[1] as $queryParamName => $queryParamInfo) {
                if (!isset($params[$queryParamName])) {
                    $params[$queryParamName] = null;
                }
            }
        }

        return Url::getCurrentQueryStringWithParametersModified($params);
    }
204107
public function findByRequestParams(Request\Params $params)
    {       
        if (empty($params->pagination) &&
            isset($params->resourceConfig) && 
            isset($params->resourceConfig->defaults) &&
            isset($params->resourceConfig->defaults->pagination) &&
            !$params->resourceConfig->defaults->pagination
            ) {
            return $this->findAll(
                $params->primaryClass,
                $params->filters,
                $params->sorting,
                $params->translatable
            );
        } else {
            return $this->findPaginated(
                $params->primaryClass,
                $params->filters,
                $params->sorting,
                $params->getPageOffset(),
                $params->getPageSize(),
                $params->translatable
            );
        }
    }
1170074
public function getRealParams(array $params)
    {
        foreach ($params as $k => $p) {
            if (is_array($p)) {
                $params[$k] = $p[1];
            }
        }

        return $params;
    }
305947
public static function load($params = null)
    {
        if (!isset(self::$_instance)) {
            self::$_instance = new Auth($params);
        }

        return self::$_instance;
    }
1088303
public function getList($params = array()) {
        $this->checkPermissions('getList');
        
        return $this->client->retrieveData($this->resourceName, $params);
    }
227829
public function get($relativePath, $params = null)
    {
        return $this->_curlRequest(
            'GET',
            $this->scopedUrl($this->getBaseUrl(), $relativePath),
            $this->defaultHeaders(),
            $params
        );
    }
200752
public static function fetch($params) {
        $cache = cache::make('core', 'coursecompletion');

        $key = $params['userid'] . '_' . $params['course'];
        if ($hit = $cache->get($key)) {
            return $hit['value'];
        }

        $tocache = self::fetch_helper('course_completions', __CLASS__, $params);
        $cache->set($key, ['value' => $tocache]);
        return $tocache;
    }
1195495
public static function parse($params = [])
	{
		$obj = new Body();

		foreach( (array) $params['vars'] as $item )
		{
			$obj->setVar($item['name'], $item['value']);
		}

		foreach( (array) $params['requests'] as $item )
		{
			$obj->setRequest($item);
		}

		return $obj;
	}
741338
public function download(array $params = [])
    {
        $path = $this->buildPatchPath();

        return $this->pureGet($path, $params, ['Accept' => 'text/plain'])->getBody();
    }
838347
public function get($params = null)
    {
        $curlHandle = $this->prepareGet($params);
        return $this->curlGetResponse($curlHandle);
    }
1172572
protected function getAccessTokenRequest(array $params)
    {
        if (isset($params['scope']) && is_array($params['scope'])) {
            $separator = $this->getScopeSeparator();
            $params['scope'] = implode($separator, $params['scope']);
        }

        return parent::getAccessTokenRequest($params);
    }
418868
final public static function getInstance(...$params)
    {
        $called = static::class;
        if (self::$instance instanceof $called) {
            return self::$instance;
        } else {
            return self::$instance = new $called(...$params);
        }
    }