From 52f6599748ef61219112111dc5db71f3342b076d Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 8 Aug 2013 17:38:35 +0200 Subject: adapted account api to multi user, fixed http referer bug --- pyload/remote/pyload.thrift | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'pyload/remote/pyload.thrift') diff --git a/pyload/remote/pyload.thrift b/pyload/remote/pyload.thrift index 9f2cfc8ee..702bd9b94 100644 --- a/pyload/remote/pyload.thrift +++ b/pyload/remote/pyload.thrift @@ -294,7 +294,7 @@ struct AccountInfo { 8: bool premium, 9: bool activated, 10: bool shared, - 11: map options, + 11: list config, } struct OnlineCheck { @@ -335,6 +335,9 @@ exception Unauthorized { exception Forbidden { } +exception Conflict { +} + service Pyload { @@ -489,9 +492,12 @@ service Pyload { // Account Methods /////////////////////// - list getAccounts(1: bool refresh), list getAccountTypes(), - void updateAccount(1: PluginName plugin, 2: string login, 3: string password), + + list getAccounts(), + AccountInfo getAccountInfo(1: PluginName plugin, 2: string loginname, 3: bool refresh), + + AccountInfo updateAccount(1: PluginName plugin, 2: string loginname, 3: string password), void updateAccountInfo(1: AccountInfo account), void removeAccount(1: AccountInfo account), -- cgit v1.2.3