Sha256: ffaa0951066a841bfcd4451115f1547d6a1f2075848582e2b3c73c1e16a02e28

Contents?: true

Size: 1.36 KB

Versions: 1

Compression:

Stored size: 1.36 KB

Contents

# frozen_string_literal: true

module Seam
  module Clients
    class ConnectWebviews < BaseClient
      def get(connect_webview_id = nil)
        request_seam_object(
          :get,
          "/connect_webviews/get",
          Seam::ConnectWebview,
          "connect_webview",
          params: {connect_webview_id: connect_webview_id}
        )
      end

      def list
        request_seam_object(
          :get,
          "/connect_webviews/list",
          Seam::ConnectWebview,
          "connect_webviews",
          params: {}
        )
      end

      def create(
        accepted_providers: nil,
        custom_redirect_url: nil,
        custom_redirect_failure_url: nil,
        automatically_manage_new_devices: nil,
        device_selection_mode: nil,
        provider_category: nil
      )
        request_seam_object(
          :post,
          "/connect_webviews/create",
          Seam::ConnectWebview,
          "connect_webview",
          body: {
            accepted_providers: accepted_providers,
            custom_redirect_url: custom_redirect_url,
            custom_redirect_failure_url: custom_redirect_failure_url,
            automatically_manage_new_devices: automatically_manage_new_devices,
            device_selection_mode: device_selection_mode,
            provider_category: provider_category
          }.compact
        )
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
seamapi-1.10.0 lib/seam/clients/connect_webviews.rb