Sha256: e07d4f29e531882b6efbfa5570316f210239c75f13273df9708759668f4d0a29

Contents?: true

Size: 696 Bytes

Versions: 20

Compression:

Stored size: 696 Bytes

Contents

require 'spaceship/connect_api/users/client'

module Spaceship
  class ConnectAPI
    module Users
      #
      # users
      #

      def get_users(filter: {}, includes: nil, limit: nil, sort: nil)
        params = Client.instance.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
        Client.instance.get("users", params)
      end

      def add_user_visible_apps(user_id: nil, app_ids: nil)
        body = {
          data: app_ids.map do |app_id|
            {
              type: "apps",
              id: app_id
            }
          end
        }

        Client.instance.post("users/#{user_id}/relationships/visibleApps", body)
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
fastlane-2.156.1 spaceship/lib/spaceship/connect_api/users/users.rb
fastlane-2.156.0 spaceship/lib/spaceship/connect_api/users/users.rb
fastlane-2.155.3 spaceship/lib/spaceship/connect_api/users/users.rb
fastlane-2.155.2 spaceship/lib/spaceship/connect_api/users/users.rb
fastlane-2.155.1 spaceship/lib/spaceship/connect_api/users/users.rb
fastlane-2.155.0 spaceship/lib/spaceship/connect_api/users/users.rb
fastlane-2.154.0 spaceship/lib/spaceship/connect_api/users/users.rb
fastlane-2.153.1 spaceship/lib/spaceship/connect_api/users/users.rb
fastlane-2.153.0 spaceship/lib/spaceship/connect_api/users/users.rb
fastlane-2.152.0 spaceship/lib/spaceship/connect_api/users/users.rb
fastlane-2.151.2 spaceship/lib/spaceship/connect_api/users/users.rb
fastlane-2.151.1 spaceship/lib/spaceship/connect_api/users/users.rb
fastlane-2.151.0 spaceship/lib/spaceship/connect_api/users/users.rb
fastlane-2.150.3 spaceship/lib/spaceship/connect_api/users/users.rb
fastlane-2.150.2 spaceship/lib/spaceship/connect_api/users/users.rb
fastlane-2.150.1 spaceship/lib/spaceship/connect_api/users/users.rb
fastlane-2.150.0 spaceship/lib/spaceship/connect_api/users/users.rb
fastlane-2.150.0.rc7 spaceship/lib/spaceship/connect_api/users/users.rb
fastlane-2.150.0.rc6 spaceship/lib/spaceship/connect_api/users/users.rb
fastlane-2.150.0.rc5 spaceship/lib/spaceship/connect_api/users/users.rb