CA Service Management

get_access_for_contact 

Dec 09, 2015 04:03 PM

SPEL API methods

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

Statistics
0 Favorited
9 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.