PHP code example of swe / softgarden-api

1. Go to this page and download the library: Download swe/softgarden-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

swe / softgarden-api example snippets


/**
 * @throws GuzzleException
 */
public function getCatalogByType(string $type, string $typeId): string;

/**
 * @throws GuzzleException
 */
public function getCatalogue(string $type): array;

/**
 * @throws GuzzleException
 */
public function getChannels(): ChannelCollection;

/**
 * @throws GuzzleException
 */
public function getJob(string $channelId, int $jobId): Job;

/**
 * @throws GuzzleException
 */
public function getJobBasket(string $channelId): JobSearchResult;

/**
 * @throws GuzzleException
 */
public function getJobQuestions(int $jobId): JobQuestionCollection;

/**
 * @throws GuzzleException
 */
public function getJobs(string $channelId): JobCollection;

/**
 * @return bool
 */
public function isUseAutomaticCatalogueCompletion(): bool;

/**
 * @param bool $useAutomaticCatalogueCompletion
 */
public function setUseAutomaticCatalogueCompletion(bool $useAutomaticCatalogueCompletion): void;

/**
 * @throws GuzzleException
 */
public function searchForJob(string $channelId, string $search = '', string $geoLocation = ''): JobSearchResult;

/**
 * @throws GuzzleException
 */
public function createApplicant(array $data): ApplicantData;

/**
 * @throws GuzzleException
 */
public function applicantExists(array $data): bool;

/**
 * @throws GuzzleException
 */
public function getUserAccessToken(ApplicantData $applicant): string;

/**
 * @throws GuzzleException
 */
public function hasApplied(string $jobId, string $uat): bool;

/**
 * @throws GuzzleException
 */
public function getAllApplications(string $uat, array $queryParameters = []): ApplicationDataCollection;

/**
 * @throws GuzzleException
 */
public function getApplication(string $applicationId, string $uat): ApplicationData;

/**
 * @throws GuzzleException
 */
public function startApplication(string $jobId, string $uat): string;

/**
 * @throws GuzzleException
 */
public function sendApplicationInformation(string $applicationId, string $uat, array $applicationData): void;

/**
 * @throws GuzzleException
 */
public function finalizeApplication(string $applicationId, string $uat, array $applicationData = []): void;

/**
 * @throws GuzzleException
 */
public function deleteApplication(string $applicationId, string $uat): void;

/**
 * @throws GuzzleException
 */
public function withdrawApplication(string $applicationId, string $uat): void;