PHP Class Njasm\Soundcloud\Request\Request

Author: Nelson J Morais ([email protected])
Inheritance: implements Njasm\Soundcloud\Request\RequestInterface
Datei anzeigen Open project: njasm/soundcloud Class Usage Examples

Public Methods

Method Description
__construct ( Njasm\Soundcloud\Resource\ResourceInterface $resource, Njasm\Soundcloud\UrlBuilder\UrlBuilderInterface $urlBuilder, Njasm\Soundcloud\Factory\FactoryInterface $factory )
asJson ( ) : Request
asXml ( ) : Request
exec ( ) : Njasm\Soundcloud\Request\ResponseInterface
getOptions ( ) : array
getUserAgent ( ) : string
setOptions ( array $options ) : Request

Protected Methods

Method Description
buildDefaultHeaders ( )
getBodyContent ( )

Method Details

__construct() public method

public __construct ( Njasm\Soundcloud\Resource\ResourceInterface $resource, Njasm\Soundcloud\UrlBuilder\UrlBuilderInterface $urlBuilder, Njasm\Soundcloud\Factory\FactoryInterface $factory )
$resource Njasm\Soundcloud\Resource\ResourceInterface
$urlBuilder Njasm\Soundcloud\UrlBuilder\UrlBuilderInterface
$factory Njasm\Soundcloud\Factory\FactoryInterface

asJson() public method

See also: https://github.com/njasm/soundcloud/issues/16
Deprecation: Soundcloud does not support XML responses anymore and calling this method is redundant.
public asJson ( ) : Request
return Request

asXml() public method

See also: https://github.com/njasm/soundcloud/issues/16
Deprecation: Soundcloud does not support XML responses anymore.
public asXml ( ) : Request
return Request

buildDefaultHeaders() protected method

protected buildDefaultHeaders ( )

exec() public method

public exec ( ) : Njasm\Soundcloud\Request\ResponseInterface
return Njasm\Soundcloud\Request\ResponseInterface

getBodyContent() protected method

protected getBodyContent ( )

getOptions() public method

public getOptions ( ) : array
return array

getUserAgent() public method

public getUserAgent ( ) : string
return string the User-Agent string

setOptions() public method

public setOptions ( array $options ) : Request
$options array
return Request