diff --git a/.gitignore b/.gitignore index 7a45843..f865f49 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ # Don't include vendor files installed via Composer /src-composer/vendor/ + +/vendor/ +/.idea/ \ No newline at end of file diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..bbf1642 --- /dev/null +++ b/composer.json @@ -0,0 +1,22 @@ +{ + "name": "mcwnuq/php-bbb-api-wrapper", + "description": "A PHP wrapper for BuiltByBit's Ultimate REST API.", + "license": "MIT", + "autoload": { + "psr-4": { + "Majored\\PhpBbbApiWrapper\\": "src/" + } + }, + "authors": [ + { + "name": "Majored" + }, + { + "name": "BuiltByBit" + }, + { + "name": "mcwnuq" + } + ], + "require": {} +} diff --git a/src/APIResponse.php b/src/APIResponse.php index 0c0e200..003ff4d 100644 --- a/src/APIResponse.php +++ b/src/APIResponse.php @@ -1,6 +1,7 @@ type, $this->value); } } - -/** Holds declarations for different API token types. */ -class TokenType { - /** @var string A string value representing the Private token type. */ - public const PRIVATE = "Private"; - - /** @var string A string value representing the Shared token type. */ - public const SHARED = "Shared"; -} \ No newline at end of file diff --git a/src/APIWrapper.php b/src/APIWrapper.php index 7a9f7e2..5e08a1b 100644 --- a/src/APIWrapper.php +++ b/src/APIWrapper.php @@ -1,23 +1,14 @@ http), 2); $status = curl_getinfo($this->http, CURLINFO_HTTP_CODE); $header = APIWrapper::parseHeaders(explode("\r\n", $header)); diff --git a/src/RequestType.php b/src/RequestType.php new file mode 100644 index 0000000..50400c2 --- /dev/null +++ b/src/RequestType.php @@ -0,0 +1,12 @@ +