Class Client
RESTful client for Bandwidth. These contain
components for all HTTP requests
made with Bandwidth.
Final
Namespace: Catapult
Object:
Client -- A direct interface to get, and reset clients
all models, types and generics point to 'only' one client
per file descriptor.
Object:
RESTclient -- HTTP manager for requests
NOTE: Client should be accessible to any object
also be referenced by it. This should be maintained
by function Get/1
Located at core/Client.php
Methods summary
public
|
#
__construct( )
Construct a client based on Credential object.
delegate to env when no args
Construct a client based on Credential object.
delegate to env when no args
1/30/2015
update supports with or without credential
object. when none is provided construct based on
arguments. Add Credentials object implicitly
previously:
$credetials = new Catapult\Credentials(params..)
client($credentials)
now:
client = new Catapult\Client(params..)
|
protected
|
#
make( ctx: $ctx )
Makes the client out of either the envorinment,
Credentials object or associative array
Makes the client out of either the envorinment,
Credentials object or associative array
Parameters
- $ctx
- | array | Envorinement
|
public static
|
#
get( $descriptor = __FILE__ )
Return global object 'client'
arg can optionally be directory descriptor
where a directory is subject to ONE client
Return global object 'client'
arg can optionally be directory descriptor
where a directory is subject to ONE client
Param:
string [directory descriptor]
|
public
|
#
set( $client_ )
Reset the client
Parameters
|