From 6f390be2bf9425d88d67374ccb8e4e7d2f837694 Mon Sep 17 00:00:00 2001 From: aymm Date: Tue, 9 Mar 2021 19:16:29 +0000 Subject: [PATCH] Added redirect_uri to API constructor --- src/APnutI.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/APnutI.php b/src/APnutI.php index 5eec2b4..181e680 100644 --- a/src/APnutI.php +++ b/src/APnutI.php @@ -71,6 +71,7 @@ class APnutI ?string $client_id = null, ?string $needed_scope = null, ?string $app_name = null, + ?string $redirect_uri = null, ?string $log_path = null ) { $this->logger = empty($log_path) ? new NullLogger() : new Logger($this->app_name); @@ -96,6 +97,9 @@ class APnutI if (!empty($needed_scope)) { $this->needed_scope = $needed_scope; } + if (!empty($redirect_uri)) { + $this->redirect_uri = $redirect_uri; + } if (!empty($app_name)) { $this->app_name = $app_name; }