示例#1
0
 public function build($apiKey)
 {
     $headers = ["Accept" => "application/json", "Content-Type" => "application/json", "Authorization" => $apiKey];
     $params = [];
     $this->calendars = new CalendarsEndpoint($this);
     $this->vacancies = new VacanciesEndpoint($this);
     $this->bookings = new BookingsEndpoint($this);
     parent::refreshFrom($headers, $params);
     return $this;
 }
 public function build($apiKey)
 {
     $headers = ["Accept" => "application/json", "Content-Type" => "application/json", "CLIENT_TOKEN" => $apiKey];
     $params = [];
     $this->clientStats = new ClientStatsEndpoint($this);
     $this->environments = new EnvironmentsEndpoint($this);
     $this->generators = new GeneratorsEndpoint($this);
     $this->integrations = new IntegrationsEndpoint($this);
     $this->runs = new RunsEndpoint($this);
     $this->schedules = new SchedulesEndpoint($this);
     $this->siteEnvironments = new SiteEnvironmentsEndpoint($this);
     $this->sites = new SitesEndpoint($this);
     $this->tests = new TestsEndpoint($this);
     $this->users = new UsersEndpoint($this);
     parent::refreshFrom($headers, $params);
     return $this;
 }