├── .gitignore ├── .travis.yml ├── LICENSE.md ├── README.md ├── composer.json ├── phpunit.xml ├── src ├── Bucket.php ├── Client.php ├── ErrorHandler.php ├── Exceptions │ ├── B2Exception.php │ ├── BadJsonException.php │ ├── BadValueException.php │ ├── BucketAlreadyExistsException.php │ ├── BucketNotEmptyException.php │ ├── FileNotPresentException.php │ ├── NotFoundException.php │ └── ValidationException.php ├── File.php └── Http │ └── Client.php └── tests ├── ClientTest.php ├── TestHelper.php └── responses ├── authorize_account.json ├── bucket_not_empty.json ├── create_bucket_exists.json ├── create_bucket_private.json ├── create_bucket_public.json ├── delete_bucket.json ├── delete_bucket_non_existent.json ├── delete_file.json ├── delete_file_non_existent.json ├── download_by_incorrect_id.json ├── download_by_incorrect_path.json ├── download_content ├── get_file.json ├── get_file_non_existent.json ├── get_upload_url.json ├── list_buckets_0.json ├── list_buckets_3.json ├── list_files_empty.json ├── list_files_page1.json ├── list_files_page2.json ├── update_bucket_to_private.json ├── update_bucket_to_public.json └── upload.json /.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | composer.lock 3 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/composer.json -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/phpunit.xml -------------------------------------------------------------------------------- /src/Bucket.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/src/Bucket.php -------------------------------------------------------------------------------- /src/Client.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/src/Client.php -------------------------------------------------------------------------------- /src/ErrorHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/src/ErrorHandler.php -------------------------------------------------------------------------------- /src/Exceptions/B2Exception.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/src/Exceptions/B2Exception.php -------------------------------------------------------------------------------- /src/Exceptions/BadJsonException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/src/Exceptions/BadJsonException.php -------------------------------------------------------------------------------- /src/Exceptions/BadValueException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/src/Exceptions/BadValueException.php -------------------------------------------------------------------------------- /src/Exceptions/BucketAlreadyExistsException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/src/Exceptions/BucketAlreadyExistsException.php -------------------------------------------------------------------------------- /src/Exceptions/BucketNotEmptyException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/src/Exceptions/BucketNotEmptyException.php -------------------------------------------------------------------------------- /src/Exceptions/FileNotPresentException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/src/Exceptions/FileNotPresentException.php -------------------------------------------------------------------------------- /src/Exceptions/NotFoundException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/src/Exceptions/NotFoundException.php -------------------------------------------------------------------------------- /src/Exceptions/ValidationException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/src/Exceptions/ValidationException.php -------------------------------------------------------------------------------- /src/File.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/src/File.php -------------------------------------------------------------------------------- /src/Http/Client.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/src/Http/Client.php -------------------------------------------------------------------------------- /tests/ClientTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/tests/ClientTest.php -------------------------------------------------------------------------------- /tests/TestHelper.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/tests/TestHelper.php -------------------------------------------------------------------------------- /tests/responses/authorize_account.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/tests/responses/authorize_account.json -------------------------------------------------------------------------------- /tests/responses/bucket_not_empty.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/tests/responses/bucket_not_empty.json -------------------------------------------------------------------------------- /tests/responses/create_bucket_exists.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/tests/responses/create_bucket_exists.json -------------------------------------------------------------------------------- /tests/responses/create_bucket_private.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/tests/responses/create_bucket_private.json -------------------------------------------------------------------------------- /tests/responses/create_bucket_public.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/tests/responses/create_bucket_public.json -------------------------------------------------------------------------------- /tests/responses/delete_bucket.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/tests/responses/delete_bucket.json -------------------------------------------------------------------------------- /tests/responses/delete_bucket_non_existent.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/tests/responses/delete_bucket_non_existent.json -------------------------------------------------------------------------------- /tests/responses/delete_file.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/tests/responses/delete_file.json -------------------------------------------------------------------------------- /tests/responses/delete_file_non_existent.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/tests/responses/delete_file_non_existent.json -------------------------------------------------------------------------------- /tests/responses/download_by_incorrect_id.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/tests/responses/download_by_incorrect_id.json -------------------------------------------------------------------------------- /tests/responses/download_by_incorrect_path.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/tests/responses/download_by_incorrect_path.json -------------------------------------------------------------------------------- /tests/responses/download_content: -------------------------------------------------------------------------------- 1 | The quick brown fox jumps over the lazy dog -------------------------------------------------------------------------------- /tests/responses/get_file.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/tests/responses/get_file.json -------------------------------------------------------------------------------- /tests/responses/get_file_non_existent.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/tests/responses/get_file_non_existent.json -------------------------------------------------------------------------------- /tests/responses/get_upload_url.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/tests/responses/get_upload_url.json -------------------------------------------------------------------------------- /tests/responses/list_buckets_0.json: -------------------------------------------------------------------------------- 1 | { 2 | "buckets": [] 3 | } -------------------------------------------------------------------------------- /tests/responses/list_buckets_3.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/tests/responses/list_buckets_3.json -------------------------------------------------------------------------------- /tests/responses/list_files_empty.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/tests/responses/list_files_empty.json -------------------------------------------------------------------------------- /tests/responses/list_files_page1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/tests/responses/list_files_page1.json -------------------------------------------------------------------------------- /tests/responses/list_files_page2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/tests/responses/list_files_page2.json -------------------------------------------------------------------------------- /tests/responses/update_bucket_to_private.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/tests/responses/update_bucket_to_private.json -------------------------------------------------------------------------------- /tests/responses/update_bucket_to_public.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/tests/responses/update_bucket_to_public.json -------------------------------------------------------------------------------- /tests/responses/upload.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cwhite92/b2-sdk-php/HEAD/tests/responses/upload.json --------------------------------------------------------------------------------