Browse Source

Aggiorna 'README.md'

jops 3 years ago
parent
commit
d20af86cef
1 changed files with 13 additions and 1 deletions
  1. 13 1
      README.md

+ 13 - 1
README.md

@@ -19,4 +19,16 @@ To use the docker version, build it, and run it with:
 ```sh
 docker build -t botvenon .
 docker run --mount source=data-volume,target=/data -it botvenon:latest
-```
+```
+
+## Prerequisite
+You need client_id, client_secret and access_token that you can retrieve with the following commands
+
+
+curl -X POST -d "client_name=NOMECLIENT&redirect_uris=urn:ietf:wg:oauth:2.0:oob&scopes=read+write+follow+push" -Ss https://mastodon.bida.im/api/v1/apps
+    esempio risposta
+        {"id":"1162403","name":"welcome-from-admin","website":null,"redirect_uri":"urn:ietf:wg:oauth:2.0:oob","client_id":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxx","client_secret":"YYYYYYYYYYYYYYYYYYYYYYYYYY","vapid_key":"QUALCOSAQUALCOSAQUALCOSAQUALCOSA"}
+curl -X POST -d "client_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx&client_secret=YYYYYYYYYYYYYYYYYYYYYYYYYY&grant_type=password&username=ZZZZZZZZZZZZZZZZ&password=LLLLLLLLLLLLLL" -Ss https://mastodon.bida.im/oauth/token
+    esempio risposta
+        {"access_token":"TOKENTOKENTOKEN","token_type":"Bearer","scope":"read","created_at":1609082262}
+