Get Friend List
This API call shall deliver you the list of Friends that a user onboarded via Referrals
Alike to the User rewards feature we talked about previously, this API call also enables a very fulfilling feature set for the Referrals.
The API call helps you get the entire list of friends, a particular user of your app has influenced into coming onto the app. You can define the list while requesting itself, to deliver … say.. 30 per page only.
api.appvirality.com/v2_0/getfriendslistapplication/jsonInput i.e. Request
{"apikey":"50524c1812904217a638a41d00cfbe94","privatekey":"5392d14323884ea3aeb3a4d200b4238d","userkey":"a8e4a180c59f42469f83c82e0cf6f051","EmailId": "","UserIdInstore": "","pageIndex":1,"pageSize":20}Input Params
| Input Params | Description |
|---|---|
| apikey | API Key of the App Get it from Dashboard › App Details |
| privatekey | Private key for API requests Get it from: Dashboard › App Details › Click App Settings › Scroll down to Advanced Settings |
| userkey (conditional) | User Key of the App user, assigned by AppVirality - a unique identifier for every App User recorded |
| EmailId (conditional) | Email of the User, updated to AppVirality |
| UserIdInstore (conditional) | Store Id of the App user, updated to AppVirality - a unique identifier of the user in your App |
conditional - One of the conditional parameters is mandatory to identify the user. Priority for user identification is userkey, UserIdInstore and EmailId
Response
Parameters requiring explanation have been marked off with explanation employing code comments
The rest are self-explanatory
{ "friends": [ // begin of FRIEND list for queried userkey { "emailId": "test209234@gmail.com", "UserIdInstore": "t21esd", "name": "madhumanne", "profileImage": "", "regDate": "11-Jul-2015" // date of sign-up } ], "success": true, // succes statement for API call "statuscode": 1, // code based on status of the API call "message": success // Information regarding API call (if relevant)}Status codes which you will see while using Get Friend List API
Status codes and description for API responses
| Status Code | Description |
|---|---|
| 0 | No data found for the search criteria |
| 1 | Success |
| 2 | Invalid User Key |
| 5 | Invalid StoreID or EmailID |
