PHP Class Njasm\Soundcloud\Request\Request

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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
buildDefaultHeaders ( )
getBodyContent ( )

Method Details

__construct() public méthode

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 méthode

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
Résultat Request

asXml() public méthode

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

buildDefaultHeaders() protected méthode

protected buildDefaultHeaders ( )

exec() public méthode

public exec ( ) : Njasm\Soundcloud\Request\ResponseInterface
Résultat Njasm\Soundcloud\Request\ResponseInterface

getBodyContent() protected méthode

protected getBodyContent ( )

getOptions() public méthode

public getOptions ( ) : array
Résultat array

getUserAgent() public méthode

public getUserAgent ( ) : string
Résultat string the User-Agent string

setOptions() public méthode

public setOptions ( array $options ) : Request
$options array
Résultat Request