You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mb@mb
21c28012c0
|
6 years ago | |
---|---|---|
static/css | 6 years ago | |
templates | 6 years ago | |
.gitignore | 6 years ago | |
README.md | 6 years ago | |
Screenshot from 2018-12-05 00-32-36.png | 6 years ago | |
api_register_app.py | 6 years ago | |
interface.py | 6 years ago | |
mastodon_api_tests.py | 6 years ago |
README.md
mastodon.api.prototype
A mastodon api prototyping area, a Flask interface exploration to test toots in other environments.
These things are dependencies
- Mastodon.py (
$ pip3 install Mastodon.py
) - Flask (
$ pip3 install flask
)
At the first time the script is running (and the mastodon api is used ...)
Change the name
and instance
in the file api_register_app.py
.
And run: $ python3 api_register_app.py
To run it
Change the api_base_url
in interface.py
to the instance that you want to use.
And then ...
$ python3 interface.py
Browse to localhost:5000 ! :)
More ...
There are a couple of API tests in the mastodon_api_tests.py
file.
Preview
![](Screenshot\ from\ 2018-12-05\ 00-32-36.png)