diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-08-08 17:38:35 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-08-08 17:38:35 +0200 |
commit | 52f6599748ef61219112111dc5db71f3342b076d (patch) | |
tree | e3627ded64b7e98493ca1ec7bd182aaa1774252e /pyload/remote/pyload.thrift | |
parent | MultiHosters: moved settings to addon plugins. (diff) | |
download | pyload-52f6599748ef61219112111dc5db71f3342b076d.tar.xz |
adapted account api to multi user, fixed http referer bug
Diffstat (limited to 'pyload/remote/pyload.thrift')
-rw-r--r-- | pyload/remote/pyload.thrift | 12 |
1 files changed, 9 insertions, 3 deletions
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<string, string> options, + 11: list <ConfigItem> config, } struct OnlineCheck { @@ -335,6 +335,9 @@ exception Unauthorized { exception Forbidden { } +exception Conflict { +} + service Pyload { @@ -489,9 +492,12 @@ service Pyload { // Account Methods /////////////////////// - list<AccountInfo> getAccounts(1: bool refresh), list<string> getAccountTypes(), - void updateAccount(1: PluginName plugin, 2: string login, 3: string password), + + list<AccountInfo> 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), |