Remove documentation for anonymous uploads
This commit is contained in:
@@ -4,12 +4,8 @@ Methods for using pixeldrain programmatically.
|
|||||||
|
|
||||||
## Authentication
|
## Authentication
|
||||||
|
|
||||||
The methods for uploading and retrieving files don't require an API key. The
|
All methods which create, modify or delete a resource require an API key. API
|
||||||
methods for creating and retrieving lists also don't require an API key. All
|
keys can be obtained from your user account's [API keys page](/user/api_keys).
|
||||||
methods which delete or modify a resource **do** require an API key.
|
|
||||||
|
|
||||||
API keys can be obtained from your user account's [API keys
|
|
||||||
page](/user/api_keys).
|
|
||||||
|
|
||||||
To use the API key you need to enter it in the password field of [HTTP Basic
|
To use the API key you need to enter it in the password field of [HTTP Basic
|
||||||
Access
|
Access
|
||||||
@@ -43,13 +39,9 @@ URL.
|
|||||||
|
|
||||||
## curl example
|
## curl example
|
||||||
|
|
||||||
Here's how to anonymously upload a file using curl:
|
To upload files to pixeldrain you will need an API key. Get an API key from the
|
||||||
|
[API keys page](/user/api_keys) and enter it in the command. Replace the example
|
||||||
`curl -T "file_name.txt" https://pixeldrain.com/api/file/`
|
API key here with your own:
|
||||||
|
|
||||||
You can also upload a file to your pixeldrain account using curl. Get an API key
|
|
||||||
from the [API keys page](/user/api_keys) and enter it in the command. Replace
|
|
||||||
the example API key here with your own:
|
|
||||||
|
|
||||||
`curl -T "file_name.txt" -u :5f45f184-64bb-4eaa-be19-4a5f0459db49
|
`curl -T "file_name.txt" -u :5f45f184-64bb-4eaa-be19-4a5f0459db49
|
||||||
https://pixeldrain.com/api/file/`
|
https://pixeldrain.com/api/file/`
|
||||||
|
@@ -13,9 +13,8 @@ performance issues in certain environments.
|
|||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
Param | Type | Required | Maximum Size | Default | Description
|
Param | Type | Required | Maximum Size | Default | Description
|
||||||
----------|----------------|----------|------------------------------|---------------------|-----------------------------------
|
------|----------------|----------|------------------------------|---------------------|----------------------------
|
||||||
name | string | false | 255 characters | multipart file name | Name of the file to upload
|
name | string | false | 255 characters | multipart file name | Name of the file to upload
|
||||||
anonymous | boolean | false | N/A | false | File is not linked to user if true
|
|
||||||
file | multipart file | true | Depends on user subscription | none | File to upload
|
file | multipart file | true | Depends on user subscription | none | File to upload
|
||||||
|
|
||||||
### Returns
|
### Returns
|
||||||
@@ -86,9 +85,8 @@ Upload a file.
|
|||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
Param | Type | Required | Location | Maximum Size | Default | Description
|
Param | Type | Required | Location | Maximum Size | Default | Description
|
||||||
----------|---------|----------|---------------|------------------------------|---------|-----------------------------------
|
------|--------|----------|--------------|------------------------------|---------|----------------------------
|
||||||
name | string | true | URL | 255 characters | none | Name of the file to upload
|
name | string | true | URL | 255 characters | none | Name of the file to upload
|
||||||
anonymous | boolean | false | URL parameter | N/A | false | File is not linked to user if true
|
|
||||||
file | file | true | request body | Depends on user subscription | none | File to upload
|
file | file | true | request body | Depends on user subscription | none | File to upload
|
||||||
|
|
||||||
### Returns
|
### Returns
|
||||||
|
Reference in New Issue
Block a user