Module: Bitrise::Client::App

Included in:
Bitrise::Client
Defined in:
lib/bitrise/client/app.rb

Instance Method Summary collapse

Instance Method Details

#apps(sort_by: nil, _next: nil, limit: nil) ⇒ App

List all the apps available for the authenticated account, including those that are owned by other users or Organizations.

Parameters:

  • sort_by (String) (defaults to: nil)

    Order of the applications: sort them based on when they were created or the time of their last build Available values : last_build_at, created_at

  • next (String)

    Slug of the first app in the response

  • limit (Integer) (defaults to: nil)

    Max number of elements per page (default: 50)

Returns:



16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/bitrise/client/app.rb', line 16

def apps(sort_by: nil, _next: nil, limit: nil)
  response = client.get do |request|
    request.url "/v0.1/apps"
    request.params = {
      sort_by: sort_by,
      next: _next,
      limit: limit,
    }.compact
    request.headers['Content-Type'] = 'application/json'
  end

  result = JSON.parse(response.body)
  AppResponse.new(result)
end