Skip to content

Commit edcd9c9

Browse files
Merge pull request #21 from RusticiSoftware/v2.0-release
Updated library to work with the new asset/dispatch endpoints
2 parents 30a99e8 + e9f77f2 commit edcd9c9

File tree

151 files changed

+9387
-7465
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+9387
-7465
lines changed

.swagger-codegen/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.4.12

README.md

Lines changed: 359 additions & 75 deletions
Large diffs are not rendered by default.

autoload.php

Lines changed: 0 additions & 53 deletions
This file was deleted.

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rustici-software/scormcloud-api-v2-client-php",
3-
"version": "1.1.1",
3+
"version": "2.0.0",
44
"description": "",
55
"keywords": [
66
"scorm",
@@ -19,13 +19,13 @@
1919
}
2020
],
2121
"require": {
22-
"php": ">=5.4",
22+
"php": ">=7.4",
2323
"ext-curl": "*",
2424
"ext-json": "*",
2525
"ext-mbstring": "*",
26-
"guzzlehttp/guzzle": "~6.0"
26+
"guzzlehttp/guzzle": "^7.3"
2727
},
2828
"autoload": {
2929
"psr-4": { "RusticiSoftware\\Cloud\\V2\\" : "src/" }
3030
}
31-
}
31+
}

src/Api/AboutApi.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* AboutApi
4-
* PHP version 5
4+
* PHP version 7
55
*
66
* @category Class
77
* @package RusticiSoftware\Cloud\V2
@@ -75,7 +75,7 @@ public function __construct(
7575
HeaderSelector $selector = null
7676
) {
7777
$this->client = $client ?: new Client();
78-
$this->config = $config ?: new Configuration();
78+
$this->config = $config ?: Configuration::getDefaultConfiguration();
7979
$this->headerSelector = $selector ?: new HeaderSelector();
8080
}
8181

@@ -90,7 +90,7 @@ public function getConfig()
9090
/**
9191
* Operation getAbout
9292
*
93-
* Get back the API version and application name.
93+
* Get back the API version and Application name
9494
*
9595
*
9696
* @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response
@@ -106,7 +106,7 @@ public function getAbout()
106106
/**
107107
* Operation getAboutWithHttpInfo
108108
*
109-
* Get back the API version and application name.
109+
* Get back the API version and Application name
110110
*
111111
*
112112
* @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response
@@ -180,7 +180,7 @@ public function getAboutWithHttpInfo()
180180
/**
181181
* Operation getAboutAsync
182182
*
183-
* Get back the API version and application name.
183+
* Get back the API version and Application name
184184
*
185185
*
186186
* @throws \InvalidArgumentException
@@ -199,7 +199,7 @@ function ($response) {
199199
/**
200200
* Operation getAboutAsyncWithHttpInfo
201201
*
202-
* Get back the API version and application name.
202+
* Get back the API version and Application name
203203
*
204204
*
205205
* @throws \InvalidArgumentException
@@ -284,7 +284,7 @@ protected function getAboutRequest()
284284
if (isset($_tempBody)) {
285285
// $_tempBody is the method argument, if present
286286
$httpBody = $_tempBody;
287-
287+
288288
if($headers['Content-Type'] === 'application/json') {
289289
// \stdClass has no __toString(), so we should encode it manually
290290
if ($httpBody instanceof \stdClass) {
@@ -312,7 +312,7 @@ protected function getAboutRequest()
312312

313313
} else {
314314
// for HTTP post (form)
315-
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
315+
$httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
316316
}
317317
}
318318

@@ -336,7 +336,7 @@ protected function getAboutRequest()
336336
$headers
337337
);
338338

339-
$query = \GuzzleHttp\Psr7\build_query($queryParams);
339+
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
340340
return new Request(
341341
'GET',
342342
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),

0 commit comments

Comments
 (0)