mirror of
https://github.com/SociallyDev/Spaces-API.git
synced 2025-07-14 17:13:01 -07:00
Update README.md
This commit is contained in:
parent
07c1762818
commit
e68f5c231b
1 changed files with 10 additions and 4 deletions
14
README.md
14
README.md
|
@ -15,11 +15,13 @@ $space = "my-space";
|
|||
$space = new SpacesConnect($key, $secret, $space);
|
||||
```
|
||||
|
||||
|
||||
All available options:
|
||||
###### SpacesConnect( REQUIRED KEY, REQUIRED SECRET, OPTIONAL SPACE's NAME, OPTIONAL REGION, OPTION HOST DOMAIN );
|
||||
|
||||
<br />
|
||||
|
||||
|
||||
### Uploading/Downloading Files
|
||||
|
||||
### Uploading/Downloading Files
|
||||
```php
|
||||
$path_to_file = "folder/my-image.png";
|
||||
|
@ -30,7 +32,7 @@ $space->uploadFile($path_to_file, $optional_file_name);
|
|||
All available options:
|
||||
###### uploadFile( REQUIRED PATH TO FILE, OPTIONAL NAME TO SAVE FILE AS);
|
||||
|
||||
<br />
|
||||
|
||||
### Creating Temporary Links
|
||||
```php
|
||||
$file = "image.png";
|
||||
|
@ -41,7 +43,7 @@ $link = $space->CreateTemporaryURL($file, $valid_for);
|
|||
All available options:
|
||||
###### CreateTemporaryURL( REQUIRED FILE NAME, OPTIONAL TIME LINK IS VALID FOR);
|
||||
|
||||
<br />
|
||||
|
||||
### Creating Spaces
|
||||
```php
|
||||
$new_space = "my-new-space";
|
||||
|
@ -50,3 +52,7 @@ $space->createSpace($new_space);
|
|||
```
|
||||
All available options:
|
||||
###### createSpace( REQUIRED SPACE NAME, OPTIONAL REGION FOR SPACE);
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue