(github)
REST APIs for managing the github integration
declare(strict_types=1);
require 'vendor/autoload.php';
use Speakeasy\SpeakeasyClientSDK;
use Speakeasy\SpeakeasyClientSDK\Models\Operations;
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
$security = new Shared\Security(
apiKey: '<YOUR_API_KEY_HERE>',
);
$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build();
$request = new Operations\CheckGithubAccessRequest(
org: '<value>',
repo: '<value>',
);
$response = $sdk->github->checkAccess(
request: $request
);
if ($response->statusCode === 200) {
// handle response
}
?Operations\CheckGithubAccessResponse
Error Type |
Status Code |
Content Type |
Errorors\Error |
4XX |
application/json |
Errorors\SDKException |
5XX |
*/* |
declare(strict_types=1);
require 'vendor/autoload.php';
use Speakeasy\SpeakeasyClientSDK;
use Speakeasy\SpeakeasyClientSDK\Models\Operations;
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
$security = new Shared\Security(
apiKey: '<YOUR_API_KEY_HERE>',
);
$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build();
$request = new Operations\GetGitHubActionRequest(
org: '<value>',
repo: '<value>',
);
$response = $sdk->github->getAction(
request: $request
);
if ($response->githubGetActionResponse !== null) {
// handle response
}
?Operations\GetGitHubActionResponse
Error Type |
Status Code |
Content Type |
Errorors\Error |
4XX |
application/json |
Errorors\SDKException |
5XX |
*/* |
declare(strict_types=1);
require 'vendor/autoload.php';
use Speakeasy\SpeakeasyClientSDK;
use Speakeasy\SpeakeasyClientSDK\Models\Operations;
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
$security = new Shared\Security(
apiKey: '<YOUR_API_KEY_HERE>',
);
$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build();
$request = new Operations\GetGithubSetupStateRequest(
generateGenLockId: '<id>',
org: '<value>',
repo: '<value>',
);
$response = $sdk->github->getSetup(
request: $request
);
if ($response->githubSetupStateResponse !== null) {
// handle response
}
?Operations\GetGithubSetupStateResponse
Error Type |
Status Code |
Content Type |
Errorors\Error |
4XX |
application/json |
Errorors\SDKException |
5XX |
*/* |
declare(strict_types=1);
require 'vendor/autoload.php';
use Speakeasy\SpeakeasyClientSDK;
use Speakeasy\SpeakeasyClientSDK\Models\Operations;
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
$security = new Shared\Security(
apiKey: '<YOUR_API_KEY_HERE>',
);
$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build();
$request = new Operations\GithubCheckPublishingPRsRequest(
generateGenLockId: '<id>',
org: '<value>',
repo: '<value>',
);
$response = $sdk->github->checkPublishingPRs(
request: $request
);
if ($response->githubPublishingPRResponse !== null) {
// handle response
}
?Operations\GithubCheckPublishingPRsResponse
Error Type |
Status Code |
Content Type |
Errorors\Error |
4XX |
application/json |
Errorors\SDKException |
5XX |
*/* |
declare(strict_types=1);
require 'vendor/autoload.php';
use Speakeasy\SpeakeasyClientSDK;
use Speakeasy\SpeakeasyClientSDK\Models\Operations;
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
$security = new Shared\Security(
apiKey: '<YOUR_API_KEY_HERE>',
);
$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build();
$request = new Operations\GithubCheckPublishingSecretsRequest(
generateGenLockId: '<id>',
);
$response = $sdk->github->checkPublishingSecrets(
request: $request
);
if ($response->githubMissingPublishingSecretsResponse !== null) {
// handle response
}
?Operations\GithubCheckPublishingSecretsResponse
Error Type |
Status Code |
Content Type |
Errorors\Error |
4XX |
application/json |
Errorors\SDKException |
5XX |
*/* |
declare(strict_types=1);
require 'vendor/autoload.php';
use Speakeasy\SpeakeasyClientSDK;
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
$security = new Shared\Security(
apiKey: '<YOUR_API_KEY_HERE>',
);
$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build();
$request = new Shared\GithubConfigureCodeSamplesRequest(
org: '<value>',
repo: '<value>',
targetName: '<value>',
);
$response = $sdk->github->configureCodeSamples(
request: $request
);
if ($response->githubConfigureCodeSamplesResponse !== null) {
// handle response
}
?Operations\GithubConfigureCodeSamplesResponse
Error Type |
Status Code |
Content Type |
Errorors\Error |
4XX |
application/json |
Errorors\SDKException |
5XX |
*/* |
declare(strict_types=1);
require 'vendor/autoload.php';
use Speakeasy\SpeakeasyClientSDK;
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
$security = new Shared\Security(
apiKey: '<YOUR_API_KEY_HERE>',
);
$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build();
$request = new Shared\GithubConfigureMintlifyRepoRequest(
input: '<value>',
org: '<value>',
overlays: [
'<value>',
],
repo: '<value>',
);
$response = $sdk->github->configureMintlifyRepo(
request: $request
);
if ($response->statusCode === 200) {
// handle response
}
?Operations\GithubConfigureMintlifyRepoResponse
Error Type |
Status Code |
Content Type |
Errorors\Error |
4XX |
application/json |
Errorors\SDKException |
5XX |
*/* |
declare(strict_types=1);
require 'vendor/autoload.php';
use Speakeasy\SpeakeasyClientSDK;
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
$security = new Shared\Security(
apiKey: '<YOUR_API_KEY_HERE>',
);
$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build();
$request = new Shared\GithubConfigureTargetRequest(
org: '<value>',
repoName: '<value>',
);
$response = $sdk->github->configureTarget(
request: $request
);
if ($response->statusCode === 200) {
// handle response
}
?Operations\GithubConfigureTargetResponse
Error Type |
Status Code |
Content Type |
Errorors\Error |
4XX |
application/json |
Errorors\SDKException |
5XX |
*/* |
declare(strict_types=1);
require 'vendor/autoload.php';
use Speakeasy\SpeakeasyClientSDK;
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
$security = new Shared\Security(
apiKey: '<YOUR_API_KEY_HERE>',
);
$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build();
$request = new Shared\GithubStorePublishingSecretsRequest(
generateGenLockId: '<id>',
);
$response = $sdk->github->storePublishingSecrets(
request: $request
);
if ($response->statusCode === 200) {
// handle response
}
?Operations\GithubStorePublishingSecretsResponse
Error Type |
Status Code |
Content Type |
Errorors\Error |
4XX |
application/json |
Errorors\SDKException |
5XX |
*/* |
declare(strict_types=1);
require 'vendor/autoload.php';
use Speakeasy\SpeakeasyClientSDK;
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
$security = new Shared\Security(
apiKey: '<YOUR_API_KEY_HERE>',
);
$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build();
$request = new Shared\GithubTriggerActionRequest(
genLockId: '<id>',
org: '<value>',
repoName: '<value>',
);
$response = $sdk->github->triggerAction(
request: $request
);
if ($response->statusCode === 200) {
// handle response
}
?Operations\GithubTriggerActionResponse
Error Type |
Status Code |
Content Type |
Errorors\Error |
4XX |
application/json |
Errorors\SDKException |
5XX |
*/* |
declare(strict_types=1);
require 'vendor/autoload.php';
use Speakeasy\SpeakeasyClientSDK;
use Speakeasy\SpeakeasyClientSDK\Models\Operations;
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
$security = new Shared\Security(
apiKey: '<YOUR_API_KEY_HERE>',
);
$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build();
$request = new Operations\LinkGithubAccessRequest();
$response = $sdk->github->linkGithub(
request: $request
);
if ($response->statusCode === 200) {
// handle response
}
?Operations\LinkGithubAccessResponse
Error Type |
Status Code |
Content Type |
Errorors\Error |
4XX |
application/json |
Errorors\SDKException |
5XX |
*/* |