25'ten fazla konu seçemezsiniz
Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
mb
b52399a532
|
5 yıl önce | |
---|---|---|
static/css | 5 yıl önce | |
templates | 5 yıl önce | |
.gitignore | 5 yıl önce | |
README.md | 5 yıl önce | |
Screenshot from 2018-12-05 00-32-36.png | 5 yıl önce | |
api_register_app.py | 5 yıl önce | |
interface.py | 5 yıl önce | |
mastodon_api_tests.py | 5 yıl önce |
README.md
mastodon.api.prototype
A mastodon api prototyping area, a Flask interface exploration to test toots in other environments.
This prototype depends on ...
- 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 and see the interface
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)