mirror of
https://github.com/SociallyDev/Spaces-API.git
synced 2025-08-19 13:00:31 -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
|
### Connecting
|
||||||
```php
|
```php
|
||||||
require_once("spaces.php");
|
require_once("spaces.php");
|
||||||
|
@ -23,6 +25,9 @@ All available options:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Uploading/Downloading Files
|
### Uploading/Downloading Files
|
||||||
```php
|
```php
|
||||||
$path_to_file = "folder/my-image.png";
|
$path_to_file = "folder/my-image.png";
|
||||||
|
@ -47,6 +52,9 @@ All available options:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Creating Temporary Links
|
### Creating Temporary Links
|
||||||
```php
|
```php
|
||||||
$file = "image.png";
|
$file = "image.png";
|
||||||
|
@ -63,6 +71,10 @@ All available options:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Creating Spaces
|
### Creating Spaces
|
||||||
```php
|
```php
|
||||||
$new_space = "my-new-space";
|
$new_space = "my-new-space";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue