Partner API Only
The enumerateCompanies() method returns an array of zero or more VerticalResponse accounts (companies) belonging to the current partner.
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]
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, } );