EasyPost\Item::retrieve_reference PHP Method

retrieve_reference() public static method

retrieve item reference
public static retrieve_reference ( mixed $params = null, string $apiKey = null ) : array
$params mixed
$apiKey string
return array
    public static function retrieve_reference($params = null, $apiKey = null)
    {
        $class = get_class();
        $requestor = new Requestor($apiKey);
        $url = self::classUrl($class);
        list($response, $apiKey) = $requestor->request('get', $url . '/retrieve_reference', $params);
        return Util::convertToEasyPostObject($response, $apiKey);
    }