Fully rename Pixeldrain to Nova
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# API documentation
|
||||
|
||||
Methods for using pixeldrain programmatically.
|
||||
Methods for using Nova programmatically.
|
||||
|
||||
## Authentication
|
||||
|
||||
@@ -16,7 +16,7 @@ Example usage in JavaScript:
|
||||
|
||||
```js
|
||||
const resp = await fetch(
|
||||
"https://pixeldrain.com/api/user/files",
|
||||
"https://nova.storage/api/user/files",
|
||||
headers: {
|
||||
"Authorization": "Basic "+btoa(":"+api_key),
|
||||
// The btoa function encodes the key to Base64
|
||||
@@ -39,20 +39,20 @@ URL.
|
||||
|
||||
## curl example
|
||||
|
||||
To upload files to pixeldrain you will need an API key. Get an API key from the
|
||||
To upload files to Nova 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
|
||||
API key here with your own:
|
||||
|
||||
`curl -T "file_name.txt" -u :5f45f184-64bb-4eaa-be19-4a5f0459db49
|
||||
https://pixeldrain.com/api/file/`
|
||||
https://nova.storage/api/file/`
|
||||
|
||||
## Form value order
|
||||
|
||||
I recommend you put files at the end of every file upload form. By doing this
|
||||
the pixeldrain server can respond to malformed requests before the file upload
|
||||
the Nova server can respond to malformed requests before the file upload
|
||||
finishes and this may save you a lot of time and bandwidth when uploading large
|
||||
files. Make sure your HTTP client has support for premature responses,
|
||||
pixeldrain uses them a lot. If the server responds before your request is
|
||||
Nova uses them a lot. If the server responds before your request is
|
||||
finished it will always indicate an error and you may abort the connection.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user