|
def | __init__ (self, Cloudstorage cloud, on_upload=None, on_clipboard_write=None, on_prepare_url=None, stop_check=None, timeout=5000) |
|
def | share (self, file_or_url, social='twitter', title='My new crossword', notes=_('See my new crossword'), url_shortener='google', tags='pycross, crossword, python', source='pyCross') |
|
|
string | APPID = 'abf1b67f10817416ba9fee9b76455bef' |
|
string | BASEURL = 'https://www.shareaholic.com/api/share/?v=1&apitype=1' |
|
dictionary | ERRMAP = {'message': 'data', 'code': 'code'} |
|
dictionary | SERVICES |
|
◆ __init__()
def pycross.utils.onlineservices.Share.__init__ |
( |
|
self, |
|
|
Cloudstorage |
cloud, |
|
|
|
on_upload = None , |
|
|
|
on_clipboard_write = None , |
|
|
|
on_prepare_url = None , |
|
|
|
stop_check = None , |
|
|
|
timeout = 5000 |
|
) |
| |
◆ share()
def pycross.utils.onlineservices.Share.share |
( |
|
self, |
|
|
|
file_or_url, |
|
|
|
social = 'twitter' , |
|
|
|
title = 'My new crossword' , |
|
|
|
notes = _('See my new crossword') , |
|
|
|
url_shortener = 'google' , |
|
|
|
tags = 'pycross,crossword,python' , |
|
|
|
source = 'pyCross' |
|
) |
| |
◆ APPID
string pycross.utils.onlineservices.Share.APPID = 'abf1b67f10817416ba9fee9b76455bef' |
|
static |
◆ BASEURL
string pycross.utils.onlineservices.Share.BASEURL = 'https://www.shareaholic.com/api/share/?v=1&apitype=1' |
|
static |
◆ cloud
pycross.utils.onlineservices.Share.cloud |
◆ ERRMAP
dictionary pycross.utils.onlineservices.Share.ERRMAP = {'message': 'data', 'code': 'code'} |
|
static |
◆ on_clipboard_write
pycross.utils.onlineservices.Share.on_clipboard_write |
◆ on_prepare_url
pycross.utils.onlineservices.Share.on_prepare_url |
◆ on_upload
pycross.utils.onlineservices.Share.on_upload |
◆ SERVICES
dictionary pycross.utils.onlineservices.Share.SERVICES |
|
static |
Initial value:= {'twitter': 7, 'facebook': 5, 'pinterest': 309, 'linkedin': 88, 'gmail': 52,
'yahoomail': 54, 'aolmail': 55, 'hotmail': 53, 'myspace': 39,
'reddit': 40, 'skype': 989, 'tumblr': 78, 'yandex': 267, 'clipboard': 0}
◆ stop_check
pycross.utils.onlineservices.Share.stop_check |
◆ timeout
pycross.utils.onlineservices.Share.timeout |
The documentation for this class was generated from the following file: