Usage Guide and Documentation

setConfig()

It is used to transmit the function parameters to the API side.
private function setConfig($username,$password,$sandbox){
    $this->config["settings"]["username"]   = $username;
    $this->config["settings"]["password"]   = $password;
    $this->config["settings"]["test-mode"]  = $sandbox;
    
    $this->api = new ExampleRegistrarModule_API($sandbox);
 
    $this->api->set_credentials($username,$password);
 }