|
@@ -33,11 +33,12 @@ class SettingService {
|
|
|
|
|
|
public function setAuthUrl(int $channelId, string $redirectUrl) {
|
|
public function setAuthUrl(int $channelId, string $redirectUrl) {
|
|
$client = new Client();
|
|
$client = new Client();
|
|
- $res =$client->request('Post', self::BASE_URL.'v1/activities/'.$channelId.'/setAuthUrl', [
|
|
|
|
|
|
+ $res =$client->request('Post', self::BASE_URL.'v1/activities/'.$channelId.'/setAuth', [
|
|
'headers' => [
|
|
'headers' => [
|
|
'Authorization' => self::TOKEN
|
|
'Authorization' => self::TOKEN
|
|
],
|
|
],
|
|
'json' => [
|
|
'json' => [
|
|
|
|
+ 'method' => 'CUSTOM_VERIFY',
|
|
'redirect_url' => $redirectUrl
|
|
'redirect_url' => $redirectUrl
|
|
]
|
|
]
|
|
]);
|
|
]);
|