๋ง์คํ ๋ API๋ฅผ ํ์ฉํ๊ธฐ ์ํ ํค๋ฅผ ์์ฑํด์ฃผ๋ ํ์ด์ ์คํฌ๋ฆฝํธ์ ๋๋ค.
A Python script that generates authentication key for using Mastodon API.
python credential.py [action]
register
์๋ก์ด ํค๋ฅผ ์์ฑํฉ๋๋ค.
Generates a new key
delete
๋ฑ๋ก๋ ํค๋ฅผ ์ญ์ ํฉ๋๋ค. ์ญ์ ๊ณผ์ ์ค์ ํค๊ฐ ๋ด๊ธด ํ์ผ๋ช ์ ์๊ตฌํ ๊ฒ์ ๋๋ค.
Deletes previously registered key. May require filename containing credential.
ํ์ด์ ์คํฌ๋ฆฝํธ ๋ด์์ import credential
ํ์ฌ retrieve()
ํจ์๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค. ์ฌ์ฉ์๋ช
๊ณผ ์ธ์คํด์ค ์ฃผ์
, ์ธ์ฆ ๋ด์ญ์ด ์ ์ฅ๋ ํ์ผ๋ช
์ ์๊ตฌํ ์ ์์ต๋๋ค.
You can use retrieve()
function by import credential
inside Python script. May require username
, instance address
and filename containing auth credential
.
- Python3
- Requests