The canCallMethod() method determines whether the current session is allowed to call the specified server method.
Input
session_id [xsd:string] (required)
Your API session id.
method_name [xsd:string] (required)
The name of the method.
Output
[xsd:boolean]
Examples
Java
String methodName = "calculateCampaignAudience"; CanCallMethodArgs args = new CanCallMethodArgs(); args.setMethod_name(methodName); args.setSession_id(sessionId); boolean stuff = vrapi.canCallMethod(args);
Perl
$vrapi->canCallMethod( { session_id => $sid, method_name => 'calculateCampaignAudience', } );
PHP
$vrapi->canCallMethod( array( 'session_id' => $sid, 'method_name' => 'calculateCampaignAudience', ) );
Ruby
vr.canCallMethod({ 'session_id' => sid, 'method_name' => 'calculateCampaignAudience', })
C#.NET
canCallMethodArgs objCanCall = new canCallMethodArgs(); objCanCall.session_id = _sSessionId; objCanCall.method_name = "calculateCampaignAudience"; objVR.canCallMethod(objCanCall);