Skip to content

Commit

Permalink
Merge pull request #21 from RusticiSoftware/v2.0-release
Browse files Browse the repository at this point in the history
Updated library to work with the new asset/dispatch endpoints
  • Loading branch information
mjschuetze102 authored Nov 4, 2021
2 parents 30a99e8 + e9f77f2 commit edcd9c9
Show file tree
Hide file tree
Showing 151 changed files with 9,387 additions and 7,465 deletions.
1 change: 1 addition & 0 deletions .swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.4.12
434 changes: 359 additions & 75 deletions README.md

Large diffs are not rendered by default.

53 changes: 0 additions & 53 deletions autoload.php

This file was deleted.

8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rustici-software/scormcloud-api-v2-client-php",
"version": "1.1.1",
"version": "2.0.0",
"description": "",
"keywords": [
"scorm",
Expand All @@ -19,13 +19,13 @@
}
],
"require": {
"php": ">=5.4",
"php": ">=7.4",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"guzzlehttp/guzzle": "~6.0"
"guzzlehttp/guzzle": "^7.3"
},
"autoload": {
"psr-4": { "RusticiSoftware\\Cloud\\V2\\" : "src/" }
}
}
}
18 changes: 9 additions & 9 deletions src/Api/AboutApi.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* AboutApi
* PHP version 5
* PHP version 7
*
* @category Class
* @package RusticiSoftware\Cloud\V2
Expand Down Expand Up @@ -75,7 +75,7 @@ public function __construct(
HeaderSelector $selector = null
) {
$this->client = $client ?: new Client();
$this->config = $config ?: new Configuration();
$this->config = $config ?: Configuration::getDefaultConfiguration();
$this->headerSelector = $selector ?: new HeaderSelector();
}

Expand All @@ -90,7 +90,7 @@ public function getConfig()
/**
* Operation getAbout
*
* Get back the API version and application name.
* Get back the API version and Application name
*
*
* @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response
Expand All @@ -106,7 +106,7 @@ public function getAbout()
/**
* Operation getAboutWithHttpInfo
*
* Get back the API version and application name.
* Get back the API version and Application name
*
*
* @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response
Expand Down Expand Up @@ -180,7 +180,7 @@ public function getAboutWithHttpInfo()
/**
* Operation getAboutAsync
*
* Get back the API version and application name.
* Get back the API version and Application name
*
*
* @throws \InvalidArgumentException
Expand All @@ -199,7 +199,7 @@ function ($response) {
/**
* Operation getAboutAsyncWithHttpInfo
*
* Get back the API version and application name.
* Get back the API version and Application name
*
*
* @throws \InvalidArgumentException
Expand Down Expand Up @@ -284,7 +284,7 @@ protected function getAboutRequest()
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;

if($headers['Content-Type'] === 'application/json') {
// \stdClass has no __toString(), so we should encode it manually
if ($httpBody instanceof \stdClass) {
Expand Down Expand Up @@ -312,7 +312,7 @@ protected function getAboutRequest()

} else {
// for HTTP post (form)
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
$httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
}
}

Expand All @@ -336,7 +336,7 @@ protected function getAboutRequest()
$headers
);

$query = \GuzzleHttp\Psr7\build_query($queryParams);
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
return new Request(
'GET',
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
Expand Down
Loading

0 comments on commit edcd9c9

Please sign in to comment.