new doc
This commit is contained in:
parent
d8917676ef
commit
08bdafbd47
10
.env.example
10
.env.example
@ -2,4 +2,12 @@ APP_ID=ABCD
|
||||
SECRET=ABCD
|
||||
TOKEN=ABCD
|
||||
APP_NAME="autopost bot"
|
||||
INSTANCE_MASTODON="https://mastodon.cipherbliss.com"
|
||||
INSTANCE_MASTODON="https://mastodon.cipherbliss.com"
|
||||
|
||||
APP_ID_account_A=ABCD
|
||||
SECRET_account_A=ABCD
|
||||
TOKEN_account_A=ABCD
|
||||
|
||||
APP_ID_account_B=ABCD
|
||||
SECRET_account_B=ABCD
|
||||
TOKEN_account_B=ABCD
|
||||
|
34
README.md
34
README.md
@ -1,36 +1,6 @@
|
||||
# Mastodon Multi account posting
|
||||
|
||||
Permet de poster sur mastodon selon le compte que l'on souhaite
|
||||
multi-account-post-schedule-mastodon
|
||||
|
||||
# curl auth
|
||||
|
||||
```bash
|
||||
curl -X POST \
|
||||
-F 'client_name=Test Application' \
|
||||
-F 'redirect_uris=urn:ietf:wg:oauth:2.0:oob' \
|
||||
-F 'scopes=read write follow push' \
|
||||
-F 'website=https://mastodon.cipherbliss.com' \
|
||||
https://mastodon.cipherbliss.com/api/v1/apps
|
||||
|
||||
curl -X POST \
|
||||
-F 'client_id=PuZ8Eg_2WWutiK4Cafs7mx3FIL4_SugQPSFgdC7Qq1I' \
|
||||
-F 'client_secret=GXlQI_DQAgLR7TgdVXifmpq7zITa7ye4V7Wj2gzaxiU' \
|
||||
-F 'redirect_uri=urn:ietf:wg:oauth:2.0:oob' \
|
||||
-F 'grant_type=client_credentials' \
|
||||
https://mastodon.cipherbliss.com/oauth/token
|
||||
|
||||
|
||||
curl \
|
||||
-H 'Authorization: Bearer 7Z8EJZCWvzyybl_L5BCRP3PGDTtH4Jd_-jDUQEYmYDc' \
|
||||
https://mastodon.cipherbliss.com/api/v1/apps/verify_credentials
|
||||
|
||||
```
|
||||
|
||||
{"id":"1054","name":"Test Application","website":"https://mastodon.cipherbliss.com","redirect_uri":"urn:ietf:wg:oauth:
|
||||
2.0:oob","client_id":"SgVTsRjDTbORQnk2iYXbZ8csIFsKJXR8Aahz_h1y44A","client_secret":"
|
||||
IeeLHtBsyR97i8wGoL6TP2O0Go7KixfBZ350ks71hIQ","vapid_key":"
|
||||
BEceqzZx0tYD_rY4PyN8Py9cmhsrcSlF7a3Hr26PqL1FPZuWQSN-29-EyWSx0A3mdR22ETgUkHOYIuEtDUcQvMw="}
|
||||
|
||||
{"access_token":"7Z8EJZCWvzyybl_L5BCRP3PGDTtH4Jd_-jDUQEYmYDc","token_type":"Bearer","scope":"read","created_at":1657227222}
|
||||
|
||||
{"name":"greeting bot","website":null,"vapid_key":"BEceqzZx0tYD_rY4PyN8Py9cmhsrcSlF7a3Hr26PqL1FPZuWQSN-29-EyWSx0A3mdR22ETgUkHOYIuEtDUcQvMw="}
|
||||
Pouvoir faire de la planification de posts de plusieurs comptes mastodon en créant une app pour chacun d'eux dans son compte masto, et en reportant les accès dans un fichier d'environnement de cette app nodejs.
|
||||
|
Loading…
Reference in New Issue
Block a user