Class: WhopSDK::Resources::AppBuilds
- Inherits:
-
Object
- Object
- WhopSDK::Resources::AppBuilds
- Defined in:
- lib/whop_sdk/resources/app_builds.rb
Instance Method Summary collapse
-
#create(attachment: , checksum: , platform: , app_id: nil, supported_app_view_types: nil, request_options: {}) ⇒ WhopSDK::Models::AppBuild
Some parameter documentations has been truncated, see Models::AppBuildCreateParams for more details.
-
#initialize(client:) ⇒ AppBuilds
constructor
private
A new instance of AppBuilds.
-
#list(app_id: , after: nil, before: nil, first: nil, last: nil, platform: nil, status: nil, request_options: {}) ⇒ WhopSDK::Internal::CursorPage<WhopSDK::Models::AppBuildListResponse>
Lists app builds for an app.
-
#promote(id, request_options: {}) ⇒ WhopSDK::Models::AppBuild
Promotes an app build to production.
-
#retrieve(id, request_options: {}) ⇒ WhopSDK::Models::AppBuild
Retrieves an app build by ID.
Constructor Details
#initialize(client:) ⇒ AppBuilds
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of AppBuilds.
131 132 133 |
# File 'lib/whop_sdk/resources/app_builds.rb', line 131 def initialize(client:) @client = client end |
Instance Method Details
#create(attachment: , checksum: , platform: , app_id: nil, supported_app_view_types: nil, request_options: {}) ⇒ WhopSDK::Models::AppBuild
Some parameter documentations has been truncated, see Models::AppBuildCreateParams for more details.
Creates a new app build
Required permissions:
-
‘developer:manage_builds`
32 33 34 35 36 37 38 39 40 41 |
# File 'lib/whop_sdk/resources/app_builds.rb', line 32 def create(params) parsed, = WhopSDK::AppBuildCreateParams.dump_request(params) @client.request( method: :post, path: "app_builds", body: parsed, model: WhopSDK::AppBuild, options: ) end |
#list(app_id: , after: nil, before: nil, first: nil, last: nil, platform: nil, status: nil, request_options: {}) ⇒ WhopSDK::Internal::CursorPage<WhopSDK::Models::AppBuildListResponse>
Lists app builds for an app
Required permissions:
-
‘developer:manage_builds`
93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/whop_sdk/resources/app_builds.rb', line 93 def list(params) parsed, = WhopSDK::AppBuildListParams.dump_request(params) @client.request( method: :get, path: "app_builds", query: parsed, page: WhopSDK::Internal::CursorPage, model: WhopSDK::Models::AppBuildListResponse, options: ) end |
#promote(id, request_options: {}) ⇒ WhopSDK::Models::AppBuild
Promotes an app build to production
Required permissions:
-
‘developer:manage_builds`
119 120 121 122 123 124 125 126 |
# File 'lib/whop_sdk/resources/app_builds.rb', line 119 def promote(id, params = {}) @client.request( method: :post, path: ["app_builds/%1$s/promote", id], model: WhopSDK::AppBuild, options: params[:request_options] ) end |
#retrieve(id, request_options: {}) ⇒ WhopSDK::Models::AppBuild
Retrieves an app build by ID
Required permissions:
-
‘developer:manage_builds`
57 58 59 60 61 62 63 64 |
# File 'lib/whop_sdk/resources/app_builds.rb', line 57 def retrieve(id, params = {}) @client.request( method: :get, path: ["app_builds/%1$s", id], model: WhopSDK::AppBuild, options: params[:request_options] ) end |