Exemple #1
0
 /**
  * Test the services list retrieval
  */
 public function testGetv1Endpoints()
 {
     xAC::setApiVersion(1);
     xAC::initServices(true);
     $this->assertArrayHasKey('transactions', xAC::getServices());
     $this->assertArrayHasKey('customer', xAC::getServices());
 }
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     xAC::setApiKey(Config::get('arrowsphere-client.' . APP::environment() . '.XAC_APIKEY'));
     xAC::setApiBaseUrl(Config::get('arrowsphere-client.' . APP::environment() . '.XAC_URL'));
     xAC::setApiVersion(Config::get('arrowsphere-client.' . APP::environment() . '.XAC_APIVERSION'));
     xAC::initServices(true);
     return printf("Services list has been refreshed \n");
 }