Class: Seam::Clients::ConnectWebviews

Inherits:
Object
  • Object
show all
Defined in:
lib/seam/routes/clients/connect_webviews.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:, defaults:) ⇒ ConnectWebviews

Returns a new instance of ConnectWebviews.



6
7
8
9
# File 'lib/seam/routes/clients/connect_webviews.rb', line 6

def initialize(client:, defaults:)
  @client = client
  @defaults = defaults
end

Instance Method Details

#create(accepted_capabilities: nil, accepted_providers: nil, automatically_manage_new_devices: nil, custom_metadata: nil, custom_redirect_failure_url: nil, custom_redirect_url: nil, customer_key: nil, excluded_providers: nil, provider_category: nil, wait_for_device_creation: nil) ⇒ Object



11
12
13
14
15
# File 'lib/seam/routes/clients/connect_webviews.rb', line 11

def create(accepted_capabilities: nil, accepted_providers: nil, automatically_manage_new_devices: nil, custom_metadata: nil, custom_redirect_failure_url: nil, custom_redirect_url: nil, customer_key: nil, excluded_providers: nil, provider_category: nil, wait_for_device_creation: nil)
  res = @client.post("/connect_webviews/create", {accepted_capabilities: accepted_capabilities, accepted_providers: accepted_providers, automatically_manage_new_devices: automatically_manage_new_devices, custom_metadata: , custom_redirect_failure_url: custom_redirect_failure_url, custom_redirect_url: custom_redirect_url, customer_key: customer_key, excluded_providers: excluded_providers, provider_category: provider_category, wait_for_device_creation: wait_for_device_creation}.compact)

  Seam::Resources::ConnectWebview.load_from_response(res.body["connect_webview"])
end

#delete(connect_webview_id:) ⇒ Object



17
18
19
20
21
# File 'lib/seam/routes/clients/connect_webviews.rb', line 17

def delete(connect_webview_id:)
  @client.post("/connect_webviews/delete", {connect_webview_id: connect_webview_id}.compact)

  nil
end

#get(connect_webview_id:) ⇒ Object



23
24
25
26
27
# File 'lib/seam/routes/clients/connect_webviews.rb', line 23

def get(connect_webview_id:)
  res = @client.post("/connect_webviews/get", {connect_webview_id: connect_webview_id}.compact)

  Seam::Resources::ConnectWebview.load_from_response(res.body["connect_webview"])
end

#list(custom_metadata_has: nil, customer_key: nil, limit: nil, page_cursor: nil, search: nil, user_identifier_key: nil) ⇒ Object



29
30
31
32
33
# File 'lib/seam/routes/clients/connect_webviews.rb', line 29

def list(custom_metadata_has: nil, customer_key: nil, limit: nil, page_cursor: nil, search: nil, user_identifier_key: nil)
  res = @client.post("/connect_webviews/list", {custom_metadata_has: , customer_key: customer_key, limit: limit, page_cursor: page_cursor, search: search, user_identifier_key: user_identifier_key}.compact)

  Seam::Resources::ConnectWebview.load_from_response(res.body["connect_webviews"])
end