mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-22 21:45:56 +03:00
updates readme
This commit is contained in:
parent
7169ebda8a
commit
e7357e0299
12
README.md
12
README.md
@ -29,12 +29,12 @@ Slate has a Developer API that allows you upload files using code and HTTP.
|
||||
Every user who creates an account on Slate can use the API. Here is an example:
|
||||
|
||||
```js
|
||||
const response = await fetch('https://slate.host/api/v1/get', {
|
||||
method: 'POST',
|
||||
const response = await fetch("https://slate.host/api/v1/get", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
Authorization: 'Basic XXX-YOUR-SLATE-KEY-XXX',
|
||||
}
|
||||
"Content-Type": "application/json",
|
||||
Authorization: "Basic XXX-YOUR-SLATE-KEY-XXX",
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
@ -74,7 +74,7 @@ TEXTILE_HUB_KEY=XXX
|
||||
TEXTILE_HUB_SECRET=XXX
|
||||
RESOURCE_URI_UPLOAD=http://localhost:8888
|
||||
RESOURCE_URI_STORAGE_UPLOAD=http://localhost:8888
|
||||
RESOURCE_URI_REALTIME=http://localhost:8888
|
||||
RESOURCE_URI_PUBSUB=http://localhost:5555
|
||||
```
|
||||
|
||||
### Install and run
|
||||
|
Loading…
Reference in New Issue
Block a user