PHP Class Thenbsp\Wechat\Bridge\Http

Datei anzeigen Open project: thenbsp/wechat Class Usage Examples

Protected Properties

Property Type Description
$accessToken Query With AccessToken
$body Request Body
$method Request Method
$query Request Query
$sslCert SSL 证书
$sslKey
$uri Request Url

Public Methods

Method Description
__construct ( $method, $uri ) initialize
request ( $method, $uri ) Create Client Factory
send ( $asArray = true ) Send Request
withAccessToken ( AccessToken $accessToken ) Query With AccessToken
withBody ( array $body ) Request Json Body
withQuery ( array $query ) Request Query
withSSLCert ( $sslCert, $sslKey ) Request SSL Cert
withXmlBody ( array $body ) Request Xml Body

Method Details

__construct() public method

initialize
public __construct ( $method, $uri )

request() public static method

Create Client Factory
public static request ( $method, $uri )

send() public method

Send Request
public send ( $asArray = true )

withAccessToken() public method

Query With AccessToken
public withAccessToken ( AccessToken $accessToken )
$accessToken Thenbsp\Wechat\Wechat\AccessToken

withBody() public method

Request Json Body
public withBody ( array $body )
$body array

withQuery() public method

Request Query
public withQuery ( array $query )
$query array

withSSLCert() public method

Request SSL Cert
public withSSLCert ( $sslCert, $sslKey )

withXmlBody() public method

Request Xml Body
public withXmlBody ( array $body )
$body array

Property Details

$accessToken protected_oe property

Query With AccessToken
protected $accessToken

$body protected_oe property

Request Body
protected $body

$method protected_oe property

Request Method
protected $method

$query protected_oe property

Request Query
protected $query

$sslCert protected_oe property

SSL 证书
protected $sslCert

$sslKey protected_oe property

protected $sslKey

$uri protected_oe property

Request Url
protected $uri