src/SleepingOwl/Apist/Methods/ApistMethod.php
public function get($arguments = [])
	{
		try
		{
			$this->makeRequest($arguments);
		} catch (ConnectException $e)
		{
			$url = $e->getRequest()->getUrl();
			return $this->errorResponse($e->getCode(), $e->getMessage(), $url);
		} catch (RequestException $e)
		{
			$url = $e->getRequest()->getUrl();
			$status = $e->getCode();
			$response = $e->getResponse();
			$reason = $e->getMessage();
			if ( ! is_null($response))
			{
				$reason = $response->getReasonPhrase();
			}
			return $this->errorResponse($status, $reason, $url);
		}

		return $this->parseBlueprint($this->schemaBlueprint);
	}
public function get($arguments = [])
	{
		try
		{
			$this->makeRequest($arguments);
		} catch (ConnectException $e)
		{
			$url = $e->getRequest()->getUrl();
			return $this->errorResponse($e->getCode(), $e->getMessage(), $url);
		} catch (RequestException $e)
		{
			$url = $e->getRequest()->getUrl();
			$status = $e->getCode();
			$response = $e->getResponse();
			$reason = $e->getMessage();
			if ( ! is_null($response))
			{
				$reason = $response->getReasonPhrase();
			}
			return $this->errorResponse($status, $reason, $url);
		}

		return $this->parseBlueprint($this->schemaBlueprint);
	}
public function get ( $ arguments = [ ] ) { try { $ this -> makeRequest ( $ arguments ) ; } catch ( ConnectException $ e ) { $ url = $ e -> getRequest ( ) -> getUrl ( ) ; return $ this -> errorResponse ( $ e -> getCode ( ) , $ e -> getMessage ( ) , $ url ) ; } catch ( RequestException $ e ) { $ url = $ e -> getRequest ( ) -> getUrl ( ) ; $ status = $ e -> getCode ( ) ; $ response = $ e -> getResponse ( ) ; $ reason = $ e -> getMessage ( ) ; if ( ! is_null ( $ response ) ) { $ reason = $ response -> getReasonPhrase ( ) ; } return $ this -> errorResponse ( $ status , $ reason , $ url ) ; } return $ this -> parseBlueprint ( $ this -> schemaBlueprint ) ; }
Perform method action

@param array $arguments
@return array
Perform method action