get_access_for_contact
This method allows to get contact access type information
Definition:
get_access_for_contact( string ) ;
string - contact handle
working example:
//gets licensing information for curent user
uuid who;
send_wait(0,top_object(), "call_attr", "cnt", "current_user_id");
who=msg[0];
send_wait(0, top_object(), "call_attr", "api", "get_access_for_contact", (string)who );
if (msg_error()) {
logf(ERROR, "get_access_for_contact failed %s",msg[0]);
}
else
{
object zaccess;
zaccess = msg[0];
logf(SIGNIFICANT, "access: %s",zaccess.licensed);
}