get_access_for_contact

Document created by Gutis Champion on Dec 9, 2015
Version 1Show Document
  • View in full screen mode

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);
     }
                
1 person found this helpful

Attachments

    Outcomes