Skip to content

This call would help you add a test device to your account


The modus operandi for adding a testing device has been described previously. However, in some cases that procedure may fall flat - for example if your test device had a faulty accelerometer or when the SDK does not get acknowledgement from device of the shake activity.

This call would enable you to add the device, without having to shake it. Instead of shaking the device, you have to simply execute this API call with the desired test device’s Device ID.

How to get Device ID

  • Install the app to your device, and login using a known email ID, say abc_test@testing.com
  • Now open the app, launch the Referral Screen and share the app via any of the social channels you can get your hands on
  • Navigate on the Dashboard to the Analytics section, open the Influencers tab and search for the email ID used to login into the app i.e. abc_test@testing.com

Influencer Search

Influencer Search
  • Click on the info icon to view the user/influencer details. You will find the Device ID listed among them. Copy & retain it
POSTapi.appvirality.com/v2_0/addtestdeviceapplication/json

Input i.e. Request

{
"apikey":"7b808b1f934448db8463a4c60091c49b",
"privatekey":"097262223465191eda4ec006d601b",
"deviceid":"d3e7190ac98140faa9932e89f2ba84e3"
}

Above used parameters have been discussed already. Review previous documents for help.


Response

{
"success": true,
"statuscode": 1,
"message": "Success"
}

Response Params

Output ParamsDescription
successreturns true on successful execution
messageInformation regarding API call (if relevant)
status codecode based on status of the API call

Status codes which you will see while using Add a Test Device API

Status codes and description for API responses

Status CodeDescription
1Success
9Unable to add debug Device. Make sure Test Devices Listening is Turned On before you register Debug Device.
10This device is already added