IS480 Team wiki: 2012T1 Twee-ta-doo Webservice Artiste Account
Jump to navigation
Jump to search
Webservice - Artiste Accounts
1. Endpoint: /artiste/account
Description: The top-level model of an Account
Input | |
SessionHash | The session hash of the application |
accountID | The unique ID of an account |
Output | |
Status | The return status of the API request |
accountID | The unique ID of an account. Return if status is TRUE |
accountHand | The twitter/youtube handle of the account. Return if status is TRUE |
accountType | The account type: twitter/youtube. Return if status is TRUE |
artisteID | The unique ID of an artiste. Return if status is TRUE |
2. Endpoint: /artiste/account/follow
Description: To allow follow and unfollow of accounts
Input | |
SessionHash | The session hash of the application |
followList | Accounts to be followed |
unfollowList | Accounts to be unfollowed |
Output | |
Status | The return status of the API request |
followList | Accounts followed successfully |
followList | Accounts followed successfully |
repeatReqList | Accounts followed previously |
failedReqList | Accounts not acted upon |
3. Endpoint: /artiste/account/list
Description: The list of accounts followed by the user
Input | |
SessionHash | The session hash of the application |
twitterID | The unque ID of the user requesting |
Output | |
Status | The return status of the API request |
followList | The list of accounts followed by the user. Returns only when status is TRUE AND when the sessionHash's user matches the twitterID's user |