Skip to content

A Python script that generates authentication key for using Mastodon API

Notifications You must be signed in to change notification settings

Canorus/Mastodon-Credential-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Mastodon Credential Generator

๋งˆ์Šคํ† ๋ˆ API๋ฅผ ํ™œ์šฉํ•˜๊ธฐ ์œ„ํ•œ ํ‚ค๋ฅผ ์ƒ์„ฑํ•ด์ฃผ๋Š” ํŒŒ์ด์„  ์Šคํฌ๋ฆฝํŠธ์ž…๋‹ˆ๋‹ค.

A Python script that generates authentication key for using Mastodon API.

์‚ฌ์šฉ๋ฒ• Usage

python credential.py [action]

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.

Requirements

About

A Python script that generates authentication key for using Mastodon API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages