(github)
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
async function run() {
const sdk = new Speakeasy({
security: {
apiKey: "<YOUR_API_KEY_HERE>",
},
});
const res = await sdk.github.githubCheckAccess({
org: "<value>",
repo: "<value>",
});
if (res.statusCode == 200) {
// handle response
}
}
run();
Promise<operations.GithubCheckAccessResponse>
Error Object |
Status Code |
Content Type |
errors.SDKError |
4xx-5xx |
/ |
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
async function run() {
const sdk = new Speakeasy({
security: {
apiKey: "<YOUR_API_KEY_HERE>",
},
});
const res = await sdk.github.githubConfigureTarget({
org: "<value>",
repoName: "<value>",
});
if (res.statusCode == 200) {
// handle response
}
}
run();
Promise<operations.GithubConfigureTargetResponse>
Error Object |
Status Code |
Content Type |
errors.SDKError |
4xx-5xx |
/ |
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
async function run() {
const sdk = new Speakeasy({
security: {
apiKey: "<YOUR_API_KEY_HERE>",
},
});
const res = await sdk.github.githubTriggerAction({
genLockId: "<value>",
org: "<value>",
repoName: "<value>",
});
if (res.statusCode == 200) {
// handle response
}
}
run();
Promise<operations.GithubTriggerActionResponse>
Error Object |
Status Code |
Content Type |
errors.SDKError |
4xx-5xx |
/ |