|
@ -2,14 +2,15 @@ |
|
|
|
|
|
|
|
|
A mastodon api prototyping area, a Flask interface exploration to test toots in other environments. |
|
|
A mastodon api prototyping area, a Flask interface exploration to test toots in other environments. |
|
|
|
|
|
|
|
|
----- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**This prototype depends on ... ** |
|
|
**This prototype depends on ... ** |
|
|
|
|
|
|
|
|
* Mastodon.py (```$ pip3 install Mastodon.py```) |
|
|
* Mastodon.py (```$ pip3 install Mastodon.py```) |
|
|
* Flask (```$ pip3 install flask```) |
|
|
* Flask (```$ pip3 install flask```) |
|
|
|
|
|
|
|
|
----- |
|
|
|
|
|
|
|
|
|
|
|
**At the first time the script is running ** |
|
|
**At the first time the script is running ** |
|
|
|
|
|
|
|
@ -19,7 +20,8 @@ Change the ```name``` and ```instance``` in the file ```api_register_app.py```. |
|
|
|
|
|
|
|
|
And run: ```$ python3 api_register_app.py``` |
|
|
And run: ```$ python3 api_register_app.py``` |
|
|
|
|
|
|
|
|
----- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**To run it and see the interface** |
|
|
**To run it and see the interface** |
|
|
|
|
|
|
|
@ -29,13 +31,13 @@ And then ... ```$ python3 interface.py``` |
|
|
|
|
|
|
|
|
Browse to localhost:5000 :) |
|
|
Browse to localhost:5000 :) |
|
|
|
|
|
|
|
|
----- |
|
|
|
|
|
|
|
|
|
|
|
**More ...** |
|
|
**More ...** |
|
|
|
|
|
|
|
|
There are a couple of API tests in the ```mastodon_api_tests.py``` file. |
|
|
There are a couple of API tests in the ```mastodon_api_tests.py``` file. |
|
|
|
|
|
|
|
|
----- |
|
|
|
|
|
|
|
|
|
|
|
**Preview** |
|
|
**Preview** |
|
|
|
|
|
|
|
|