mirror of
https://github.com/SociallyDev/Spaces-API.git
synced 2025-08-14 02:27:23 -07:00
Update README.md
This commit is contained in:
parent
7cce0893db
commit
e0da836965
1 changed files with 12 additions and 0 deletions
12
README.md
12
README.md
|
@ -3,6 +3,8 @@ An API wrapper for DigitalOcean's Spaces object storage designed for easy use.
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
### Connecting
|
||||
```php
|
||||
require_once("spaces.php");
|
||||
|
@ -23,6 +25,9 @@ All available options:
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Uploading/Downloading Files
|
||||
```php
|
||||
$path_to_file = "folder/my-image.png";
|
||||
|
@ -47,6 +52,9 @@ All available options:
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Creating Temporary Links
|
||||
```php
|
||||
$file = "image.png";
|
||||
|
@ -63,6 +71,10 @@ All available options:
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Creating Spaces
|
||||
```php
|
||||
$new_space = "my-new-space";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue