import Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const appBuildListResponse of client.appBuilds.list({ app_id: 'app_xxxxxxxxxxxxxx' })) {
console.log(appBuildListResponse.id);
}{
"data": [
{
"id": "apbu_xxxxxxxxxxxxx",
"platform": "ios",
"file_url": "https://cdn.whop.com/builds/abc123.zip",
"created_at": "2023-12-01T05:00:00.401Z",
"status": "draft",
"checksum": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"supported_app_view_types": [
"hub"
],
"review_message": "App crashes on launch. Please fix and resubmit.",
"is_production": true
}
],
"page_info": {
"end_cursor": "<string>",
"start_cursor": "<string>",
"has_next_page": true,
"has_previous_page": true
}
}Returns a paginated list of build artifacts for a given app, with optional filtering by platform, status, and creation date.
Required permissions:
developer:manage_buildsimport Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const appBuildListResponse of client.appBuilds.list({ app_id: 'app_xxxxxxxxxxxxxx' })) {
console.log(appBuildListResponse.id);
}{
"data": [
{
"id": "apbu_xxxxxxxxxxxxx",
"platform": "ios",
"file_url": "https://cdn.whop.com/builds/abc123.zip",
"created_at": "2023-12-01T05:00:00.401Z",
"status": "draft",
"checksum": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"supported_app_view_types": [
"hub"
],
"review_message": "App crashes on launch. Please fix and resubmit.",
"is_production": true
}
],
"page_info": {
"end_cursor": "<string>",
"start_cursor": "<string>",
"has_next_page": true,
"has_previous_page": true
}
}A company API key, company scoped JWT, app API key, or user OAuth token. You must prepend your key/token with the word 'Bearer', which will look like Bearer ***************************
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
42
Returns the last n elements from the list.
42
The unique identifier of the app to list builds for.
"app_xxxxxxxxxxxxxx"
Filter builds by target platform.
ios, android, web Filter builds by review status.
draft, pending, approved, rejected Only return builds created before this timestamp.
"2023-12-01T05:00:00.401Z"
Only return builds created after this timestamp.
"2023-12-01T05:00:00.401Z"
Was this page helpful?