GetCreditBalanceFromPanelist

Description

Gets the creditbalance for a given panelist

Signature
int GetCreditBalanceFromPanelist(string key, string panelId, int panelistId, DatabaseType databaseType)

Parameters

Name Data Type Description

key

string required

The authentication key

panelId

string required

The panel ID

panelistId

int required

The unique Id for the panelist

databaseType

DatabaseType required

Production or Test.

Response

Data Type Description

int

The balance for the given panelist.

Example

//***************************************************
//
// Get creditbalance from panelist
//
//***************************************************

// Create instance of the webservice
PanelCreditSoapClient panelCredit = new PanelCreditSoapClient();

// Credits will not be calculated in the balance if the spesific survey is not completed
// A panelists balance is the sum of all the panelists credits for completed surveys.
int balance = panelCredit.GetCreditBalanceFromPanelist(key, panelId, panelistId, DatabaseType.Production);