secret_key = $_ENV['CALLBACK_SECRET_KEY']; $this->url = $_ENV['SERVER_DOMAIN']; $this->group_id = $group->id; $this->group_id->request('groups.addCallbackServer', [ 'group_id' => $this->group_id, 'url' => $this->url, 'title' => $this->group_id . 'CallBackServer', 'secret_key' => $this->secret_key ]); $this->confirmation_token = request('groups.getCallbackConfirmationCode', [$this->group_id]); Curl::post($vk, [$this->confirmation_token]); } }