Skip to content

Commit

Permalink
readme: update
Browse files Browse the repository at this point in the history
  • Loading branch information
alx-xlx committed Mar 12, 2021
1 parent 9f933c3 commit 206e69d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,23 @@ Simply visit [this](https://goindex.glitch.me/) Modified (only for Dark Mode) ve
---
Worker Script - [index.js](https://github.com/alx-xlx/goindex/blob/2.0.8-darkmode-0.1/goindex-vue.js)

### Upload Files using CLI `gdindex_upload.py`
```py
## Python Example
import requests

to_upload = "https://i.imgur.com/8w2KDrG.gif"
# "upload: true" in the script
baseURL = "https://gdindex-dark.teamsdrives.workers.dev/"
fileName = "goindex.gif"
# "folder1/folder2/goindex.gif"
teamDriveID = "0ANCHcQq-8cmvUk9PVA"

URL = baseURL + "/" + fileName + "?rootId=" + teamDriveID + "&url=" + to_upload
r = requests.put(URL)
print(r.text)
```

Demo - [gdindex-dark.teamsdrives.workers.dev](https://gdindex-dark.teamsdrives.workers.dev/)
### [Demo - Dark Mode](https://gdindex-dark.teamsdrives.workers.dev/)
![](https://i.imgur.com/1uIQZr5.png)
Expand Down

0 comments on commit 206e69d

Please sign in to comment.