diff options
-rw-r--r-- | Mastodon.py | 25 | ||||
-rw-r--r-- | README.md | 3 |
2 files changed, 2 insertions, 26 deletions
diff --git a/Mastodon.py b/Mastodon.py index f643127..5119688 100644 --- a/Mastodon.py +++ b/Mastodon.py | |||
@@ -1,15 +1,9 @@ | |||
1 | |||
2 | # coding: utf-8 | 1 | # coding: utf-8 |
3 | 2 | ||
4 | # In[293]: | ||
5 | |||
6 | import requests | 3 | import requests |
7 | import os | 4 | import os |
8 | import os.path | 5 | import os.path |
9 | 6 | ||
10 | |||
11 | # In[310]: | ||
12 | |||
13 | class Mastodon: | 7 | class Mastodon: |
14 | """ Super basic but thorough and easy to use mastodon.social | 8 | """ Super basic but thorough and easy to use mastodon.social |
15 | api wrapper in python. | 9 | api wrapper in python. |
@@ -304,23 +298,4 @@ class Mastodon: | |||
304 | return params | 298 | return params |
305 | 299 | ||
306 | 300 | ||
307 | # In[311]: | ||
308 | |||
309 | mastodon = Mastodon(client_id = "quasibot_client_credentials.txt", access_token = 'quasibot_user_credentials.txt') | ||
310 | |||
311 | |||
312 | # In[312]: | ||
313 | |||
314 | #mastodon.account_relationships(12355) | ||
315 | mastodon.media_post('D:\\img\\google.png') | ||
316 | |||
317 | |||
318 | # In[127]: | ||
319 | |||
320 | |||
321 | |||
322 | |||
323 | # In[ ]: | ||
324 | |||
325 | |||
326 | 301 | ||
@@ -1,4 +1,5 @@ | |||
1 | # Mastodon.py | 1 | # Mastodon.py |
2 | Python wrapper for the Mastodon ( https://github.com/Gargron/mastodon/ ) API. | 2 | Python wrapper for the Mastodon ( https://github.com/Gargron/mastodon/ ) API. |
3 | 3 | ||
4 | Media uploads currently broken, will be fixed Soon. | 4 | Media uploads currently broken, will be fixed Soon. Documentation and usage examples also |
5 | incoming, but the code is heavily commented and usage frankly rather self-explanatory. | ||