pull/1/head
Lorenz Diener 2016-11-23 23:33:54 +01:00
rodzic 0eca2feb93
commit e89c7bda86
2 zmienionych plików z 2 dodań i 26 usunięć

Wyświetl plik

@ -1,15 +1,9 @@
# coding: utf-8
# In[293]:
import requests
import os
import os.path
# In[310]:
class Mastodon:
""" Super basic but thorough and easy to use mastodon.social
api wrapper in python.
@ -304,23 +298,4 @@ class Mastodon:
return params
# In[311]:
mastodon = Mastodon(client_id = "quasibot_client_credentials.txt", access_token = 'quasibot_user_credentials.txt')
# In[312]:
#mastodon.account_relationships(12355)
mastodon.media_post('D:\\img\\google.png')
# In[127]:
# In[ ]:

Wyświetl plik

@ -1,4 +1,5 @@
# Mastodon.py
Python wrapper for the Mastodon ( https://github.com/Gargron/mastodon/ ) API.
Media uploads currently broken, will be fixed Soon.
Media uploads currently broken, will be fixed Soon. Documentation and usage examples also
incoming, but the code is heavily commented and usage frankly rather self-explanatory.