Bit of cleanup
This commit is contained in:
pare
0eca2feb93
commit
e89c7bda86
S'han modificat 2 arxius amb 2 adicions i 26 eliminacions
25
Mastodon.py
25
Mastodon.py
|
@ -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[ ]:
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Referencia en una nova incidència