From dba51c2b6f80e43c015ea37a1aa4d49899151e41 Mon Sep 17 00:00:00 2001 From: Daniele Timo Date: Wed, 28 Aug 2019 13:52:19 +0300 Subject: [PATCH] Change api-proxy.pipedrive.com to api.pipedrive.com to handle Pipedrive's update --- src/Builder.php | 2 +- src/Pipedrive.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Builder.php b/src/Builder.php index a3f49aa..5c29e52 100644 --- a/src/Builder.php +++ b/src/Builder.php @@ -103,7 +103,7 @@ public static function OAuth() { $instance = new self(); - $instance->base = 'https://api-proxy.pipedrive.com/{endpoint}'; + $instance->base = 'https://api.pipedrive.com/{endpoint}'; $instance->isOauth = true; return $instance; diff --git a/src/Pipedrive.php b/src/Pipedrive.php index de37b56..34f5b84 100644 --- a/src/Pipedrive.php +++ b/src/Pipedrive.php @@ -158,7 +158,7 @@ public static function OAuth($config) { $guzzleVersion = isset($config['guzzleVersion']) ? $config['guzzleVersion'] : 6; - $new = new self('oauth', 'https://api-proxy.pipedrive.com/', $guzzleVersion); + $new = new self('oauth', 'https://api.pipedrive.com/', $guzzleVersion); $new->isOauth = true;