\EasyWeChat\OpenPlatformOpenPlatform

Class OpenPlatform.

Summary

Methods
Properties
Constants
__construct()
fetch()
__get()
createAuthorizerApplication()
__call()
getAuthorizationInfo()
getAuthorizerInfo()
getAuthorizerOption()
setAuthorizerOption()
getAuthorizerList()
$api
$pre_auth
$server
$access_token
No constants found
No protected methods found
$container
N/A
No private methods found
No private properties found
N/A

Properties

$api

$api : \EasyWeChat\OpenPlatform\Api\BaseApi

Type

\EasyWeChat\OpenPlatform\Api\BaseApi

$pre_auth

$pre_auth : \EasyWeChat\OpenPlatform\Api\PreAuthorization

Type

\EasyWeChat\OpenPlatform\Api\PreAuthorization

$server

$server : \EasyWeChat\OpenPlatform\Guard

Type

\EasyWeChat\OpenPlatform\Guard

$access_token

$access_token : \EasyWeChat\OpenPlatform\AccessToken

Type

\EasyWeChat\OpenPlatform\AccessToken

Methods

__construct()

__construct(\Pimple\Container  $container) 

ContainerAccess constructor.

Parameters

\Pimple\Container $container

fetch()

fetch(string  $key, callable|null  $callable = null) : mixed

Fetches from pimple container.

Parameters

string $key
callable|null $callable

Returns

mixed

__get()

__get(string  $key) : mixed

Gets a parameter or an object from pimple container.

Get the class basename of the current class. Convert class basename to snake-case and concatenation with dot notation.

E.g. Class 'EasyWechat', $key foo -> 'easy_wechat.foo'

Parameters

string $key

The unique identifier for the parameter or object

Throws

\InvalidArgumentException

If the identifier is not defined

Returns

mixed —

The value of the parameter or an object

createAuthorizerApplication()

createAuthorizerApplication(string  $appId, string  $refreshToken) : \EasyWeChat\Foundation\Application

Create an instance of the EasyWeChat for the given authorizer.

Parameters

string $appId

Authorizer AppId

string $refreshToken

Authorizer refresh-token

Returns

\EasyWeChat\Foundation\Application

__call()

__call(string  $method, array  $args) : mixed

Quick access to the base-api.

Parameters

string $method
array $args

Returns

mixed

getAuthorizationInfo()

getAuthorizationInfo(mixed  $authCode = null) : \EasyWeChat\Support\Collection

Parameters

mixed $authCode

Returns

\EasyWeChat\Support\Collection

getAuthorizerInfo()

getAuthorizerInfo(mixed  $authorizerAppId) : \EasyWeChat\Support\Collection

Parameters

mixed $authorizerAppId

Returns

\EasyWeChat\Support\Collection

getAuthorizerOption()

getAuthorizerOption(mixed  $authorizerAppId, mixed  $optionName) : \EasyWeChat\Support\Collection

Parameters

mixed $authorizerAppId
mixed $optionName

Returns

\EasyWeChat\Support\Collection

setAuthorizerOption()

setAuthorizerOption(mixed  $authorizerAppId, mixed  $optionName, mixed  $optionValue) : \EasyWeChat\Support\Collection

Parameters

mixed $authorizerAppId
mixed $optionName
mixed $optionValue

Returns

\EasyWeChat\Support\Collection

getAuthorizerList()

getAuthorizerList(mixed  $offset, mixed  $count = 500) : \EasyWeChat\Support\Collection

Parameters

mixed $offset
mixed $count

Returns

\EasyWeChat\Support\Collection