Overview

Namespaces

  • Angelfon
    • SDK
      • Exceptions
      • Http
      • Rest
        • Api
          • V099
            • User

Classes

  • Domain
  • InstanceContext
  • InstanceResource
  • ListResource
  • Options
  • Page
  • Serialize
  • Values
  • Version
  • VersionInfo
  • Overview
  • Namespace
  • Class

Class Version

Direct known subclasses

Angelfon\SDK\Rest\Api\V099
Abstract
Namespace: Angelfon\SDK
Located at Version.php
Methods summary
public
# __construct( Angelfon\SDK\Domain $domain )
public string
# absoluteUrl( string $uri )

Generate an absolute URL from a version relative uri

Generate an absolute URL from a version relative uri

Parameters

$uri
Version relative uri

Returns

string
Absolute URL
public string
# relativeUri( string $uri )

Generate a domain relative uri from a version relative uri

Generate a domain relative uri from a version relative uri

Parameters

$uri
Version relative uri

Returns

string
Domain relative uri
public
# request( $method, $uri, $params = array(), $data = array(), $headers = array(), $timeout = null )
protected Angelfon\SDK\Exceptions\RestException
# exception( Response $response, string $header )

Create the best possible exception for the response.

Create the best possible exception for the response.

Attempts to parse the response for Angelfon Standard error messages and use those to populate the exception, falls back to generic error message and HTTP status code.

Parameters

$response
Error response
$header
Header for exception message

Returns

Angelfon\SDK\Exceptions\RestException
public
# fetch( $method, $uri, $params = array(), $data = array(), $headers = array(), $timeout = null )
public
# update( $method, $uri, $params = array(), $data = array(), $headers = array(), $timeout = null )
public
# delete( $method, $uri, $params = array(), $data = array(), $headers = array(), $timeout = null )
public
# create( $method, $uri, $params = array(), $data = array(), $headers = array(), $timeout = null )
public
# page( $method, $uri, $params = array(), $data = array(), $headers = array(), $timeout = null )
public Angelfon\SDK\Domain
# getDomain( )

Returns

Angelfon\SDK\Domain
$domain
public
# __toString( )
Properties summary
protected $domain
#
protected $version
#
API documentation generated by ApiGen