def __init__(self, data_): self.service_name = "dropbox" self.require_config = ["dropbox_apikey", "dropbox_secret"] PostUtil.__init__(self) self.dropbox_config = { 'server': 'api.dropbox.com', 'content_server': 'api-content.dropbox.com', 'port': 80, 'consumer_key': self.config["dropbox_apikey"], 'consumer_secret': self.config["dropbox_secret"], 'verifier': '', 'request_token_url': 'https://api.dropbox.com/0/oauth/request_token', 'access_token_url': 'https://api.dropbox.com/0/oauth/access_token', 'authorization_url': 'https://www.dropbox.com/0/oauth/authorize', 'trusted_access_token_url': 'https://api.dropbox.com/0/token', } self.post(data_)
def __init__(self, data_): self.service_name = "evernote" self.require_config = ["evernote_apikey", "evernote_secret"] PostUtil.__init__(self) self.post(data_)
def __init__(self, data_): self.service_name = "flickr" # 必要な設定を検証 self.require_config = ["flickr_apikey", "flickr_secret"] PostUtil.__init__(self) self.post(data_)
def __init__(self, data_): self.service_name = "picasa" PostUtil.__init__(self) self.post(data_)