Need An Email Marketing Solution For All Of Your Customers?

Partner With VerticalResponse!

enumerateCompanies


Partner API Only
The enumerateCompanies() method returns an array of zero or more VerticalResponse accounts (companies) belonging to the current partner.

Input

[vrtypens:enumerateCompaniesArgs]

session_id [xsd:string] (required)
Your API session id.
include_users [xsd:boolean] (required)
Whether to include all the users per company in the result.

Output

[vrtypens:ArrayOfCompany]
The output is an array of a partner’s companies.

Examples

PHP

$vr->enumerateCompanies( array(
	'session_id' => $sid,
	'include_users' => false,
));

Ruby

vr.enumerateCompanies({
	'session_id' => sid,
	'include_users' => false, 
})

Java

EnumerateCompaniesArgs enumerateCompaniesArgs = new EnumerateCompaniesArgs();
enumerateCompaniesArgs.setSession_id(sessionID);
enumerateCompaniesArgs.setInclude_users(false);

Company[] enumerateCompaniesResult = vr.enumerateCompanies(enumerateCompaniesArgs);

C#/.NET

enumerateCompaniesArgs eCA = new enumerateCompaniesArgs();
eCA.session_id = sessionId;
eCA.include_users = false;

Company[] enumeratedCompanies = new Company[1];

try
{
	enumeratedCompanies = objVR.enumerateCompanies(eCA);
}
catch (Exception e)
{
	System.Console.WriteLine(e.Message);
}

Perl

$vrapi->enumerateCompanies( {
	session_id => $sid,
	include_users => false,
} );