From 23fadad2f8d4218e3996b7e439fe899aada70925 Mon Sep 17 00:00:00 2001 From: Jeff Shillitto Date: Fri, 3 Aug 2018 21:18:33 +1000 Subject: [PATCH] Use https instead of http in API URL --- src/Api/RenderApi.php | 2 +- src/Configuration.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Api/RenderApi.php b/src/Api/RenderApi.php index 5e9c40b..a7cc5b8 100644 --- a/src/Api/RenderApi.php +++ b/src/Api/RenderApi.php @@ -64,7 +64,7 @@ function __construct($apiClient = null) { if ($apiClient == null) { $apiClient = new ApiClient(); - $apiClient->getConfig()->setHost('http://api.shotstack.io/v1'); + $apiClient->getConfig()->setHost('https://api.shotstack.io/v1'); } $this->apiClient = $apiClient; diff --git a/src/Configuration.php b/src/Configuration.php index cd3419d..3c68668 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -96,7 +96,7 @@ class Configuration * * @var string */ - protected $host = 'http://api.shotstack.io/v1'; + protected $host = 'https://api.shotstack.io/v1'; /** * Timeout (second) of the HTTP request, by default set to 0, no timeout @@ -110,7 +110,7 @@ class Configuration * * @var string */ - protected $userAgent = "PHP-Swagger/0.0.3"; + protected $userAgent = "PHP-Swagger/0.0.5"; /** * Debug switch (default set to false) @@ -516,8 +516,8 @@ public static function toDebugReport() $report = "PHP SDK (Shotstack) Debug Report:\n"; $report .= " OS: ".php_uname()."\n"; $report .= " PHP Version: ".phpversion()."\n"; - $report .= " OpenAPI Spec Version: 0.0.3\n"; - $report .= " SDK Package Version: 0.0.3\n"; + $report .= " OpenAPI Spec Version: 0.0.5\n"; + $report .= " SDK Package Version: 0.0.5\n"; $report .= " Temp Folder Path: ".self::getDefaultConfiguration()->getTempFolderPath()."\n"; return $report;