HomeAppVirality DocsAppVirality APIsGet Friend List

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.

Base URL  https://api.appvirality.com

 POST         /v2_0/getfriendslist

Content-Type application/json

Input 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
  "message": null
}
Was this article helpful to you? Yes No 1