@@ 82-91 (lines=10) @@ | ||
79 | * |
|
80 | * @return \EasyWeChat\Support\Collection |
|
81 | */ |
|
82 | public function getAuthorizerToken($appId, $refreshToken) |
|
83 | { |
|
84 | $params = [ |
|
85 | 'component_appid' => $this->getAppId(), |
|
86 | 'authorizer_appid' => $appId, |
|
87 | 'authorizer_refresh_token' => $refreshToken, |
|
88 | ]; |
|
89 | ||
90 | return $this->parseJSON('json', [self::GET_AUTHORIZER_TOKEN, $params]); |
|
91 | } |
|
92 | ||
93 | /** |
|
94 | * Get authorizer info. |
|
@@ 118-127 (lines=10) @@ | ||
115 | * |
|
116 | * @return \EasyWeChat\Support\Collection |
|
117 | */ |
|
118 | public function getAuthorizerOption($authorizerAppId, $optionName) |
|
119 | { |
|
120 | $params = [ |
|
121 | 'component_appid' => $this->getAppId(), |
|
122 | 'authorizer_appid' => $authorizerAppId, |
|
123 | 'option_name' => $optionName, |
|
124 | ]; |
|
125 | ||
126 | return $this->parseJSON('json', [self::GET_AUTHORIZER_OPTION, $params]); |
|
127 | } |
|
128 | ||
129 | /** |
|
130 | * Set authorizer option. |
|
@@ 138-148 (lines=11) @@ | ||
135 | * |
|
136 | * @return \EasyWeChat\Support\Collection |
|
137 | */ |
|
138 | public function setAuthorizerOption($authorizerAppId, $optionName, $optionValue) |
|
139 | { |
|
140 | $params = [ |
|
141 | 'component_appid' => $this->getAppId(), |
|
142 | 'authorizer_appid' => $authorizerAppId, |
|
143 | 'option_name' => $optionName, |
|
144 | 'option_value' => $optionValue, |
|
145 | ]; |
|
146 | ||
147 | return $this->parseJSON('json', [self::SET_AUTHORIZER_OPTION, $params]); |
|
148 | } |
|
149 | } |
|
150 |