Need An Email Marketing Solution For All Of Your Customers?

Partner With VerticalResponse!

canCallMethod


The canCallMethod() method determines whether the current session is allowed to call the specified server method.

Input

[vrtypens:canCallMethodArgs]

session_id [xsd:string] (required)
Your API session id.
method_name [xsd:string] (required)
The name of the method.

Output

[xsd:boolean]
The output indicates whether you have permission to call the given method.

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);