Class: PersonaApi::ListItemsResource
- Inherits:
-
Resource
- Object
- Resource
- PersonaApi::ListItemsResource
show all
- Defined in:
- lib/persona_api/resources/list_items.rb
Instance Attribute Summary
Attributes inherited from Resource
#client
Instance Method Summary
collapse
Methods inherited from Resource
#delete_request, #get_request, #handle_response, #initialize, #patch_request, #post_request, #put_request
Instance Method Details
#archive_browser_fingerprint_list_item(libf_id:) ⇒ Object
These archive requests will return the body of the response. This is slightly different from other endpoints with redact/archive requests, as the List Items endpoint doesn’t contain a ‘retrieve` method.
7
8
9
|
# File 'lib/persona_api/resources/list_items.rb', line 7
def archive_browser_fingerprint_list_item(libf_id:)
delete_request("list-item/browser-fingerprints/#{libf_id}").body.dig("data")
end
|
#archive_country_list_item(libf_id:) ⇒ Object
11
12
13
|
# File 'lib/persona_api/resources/list_items.rb', line 11
def archive_country_list_item(libf_id:)
delete_request("list-item/countries/#{libf_id}").body.dig("data")
end
|
#archive_email_address_list_item(libf_id:) ⇒ Object
15
16
17
|
# File 'lib/persona_api/resources/list_items.rb', line 15
def archive_email_address_list_item(libf_id:)
delete_request("list-item/email-addresses/#{libf_id}").body.dig("data")
end
|
#archive_face_list_item(libf_id:) ⇒ Object
19
20
21
|
# File 'lib/persona_api/resources/list_items.rb', line 19
def archive_face_list_item(libf_id:)
delete_request("list-item/faces/#{libf_id}").body.dig("data")
end
|
#archive_geolocation_list_item(libf_id:) ⇒ Object
23
24
25
|
# File 'lib/persona_api/resources/list_items.rb', line 23
def archive_geolocation_list_item(libf_id:)
delete_request("list-item/geolocations#{libf_id}").body.dig("data")
end
|
#archive_government_id_number_list_item(libf_id:) ⇒ Object
27
28
29
|
# File 'lib/persona_api/resources/list_items.rb', line 27
def archive_government_id_number_list_item(libf_id:)
delete_request("list-item/government-id-numbers#{libf_id}").body.dig("data")
end
|
#archive_ip_address_list_item(libf_id:) ⇒ Object
31
32
33
|
# File 'lib/persona_api/resources/list_items.rb', line 31
def archive_ip_address_list_item(libf_id:)
delete_request("list-item/ip-addresses#{libf_id}").body.dig("data")
end
|
#archive_name_list_item(libf_id:) ⇒ Object
35
36
37
|
# File 'lib/persona_api/resources/list_items.rb', line 35
def archive_name_list_item(libf_id:)
delete_request("list-item/names#{libf_id}").body.dig("data")
end
|
#archive_phone_number_list_item(libf_id:) ⇒ Object
39
40
41
|
# File 'lib/persona_api/resources/list_items.rb', line 39
def archive_phone_number_list_item(libf_id:)
delete_request("list-item/phone-numbers#{libf_id}").body.dig("data")
end
|
#create_browser_fingerprint_list_item(**attributes) ⇒ Object
43
44
45
|
# File 'lib/persona_api/resources/list_items.rb', line 43
def create_browser_fingerprint_list_item(**attributes)
ListItem.new post_request("list-item/browser-fingerprints", body: attributes).body.dig("data")
end
|
#create_country_list_item(**attributes) ⇒ Object
47
48
49
|
# File 'lib/persona_api/resources/list_items.rb', line 47
def create_country_list_item(**attributes)
ListItem.new post_request("list-item/countries", body: attributes).body.dig("data")
end
|
#create_email_address_list_item(**attributes) ⇒ Object
51
52
53
|
# File 'lib/persona_api/resources/list_items.rb', line 51
def create_email_address_list_item(**attributes)
ListItem.new post_request("list-item/email-addresses", body: attributes).body.dig("data")
end
|
#create_face_list_item(**attributes) ⇒ Object
55
56
57
|
# File 'lib/persona_api/resources/list_items.rb', line 55
def create_face_list_item(**attributes)
ListItem.new post_request("list-item/faces", body: attributes).body.dig("data")
end
|
#create_geolocation_list_item(**attributes) ⇒ Object
59
60
61
|
# File 'lib/persona_api/resources/list_items.rb', line 59
def create_geolocation_list_item(**attributes)
ListItem.new post_request("list-item/geolocations", body: attributes).body.dig("data")
end
|
#create_government_id_number_list_item(**attributes) ⇒ Object
63
64
65
|
# File 'lib/persona_api/resources/list_items.rb', line 63
def create_government_id_number_list_item(**attributes)
ListItem.new post_request("list-item/government-id-numbers", body: attributes).body.dig("data")
end
|
#create_ip_address_list_item(**attributes) ⇒ Object
67
68
69
|
# File 'lib/persona_api/resources/list_items.rb', line 67
def create_ip_address_list_item(**attributes)
ListItem.new post_request("list-item/ip-addresses", body: attributes).body.dig("data")
end
|
#create_name_list_item(**attributes) ⇒ Object
71
72
73
|
# File 'lib/persona_api/resources/list_items.rb', line 71
def create_name_list_item(**attributes)
ListItem.new post_request("list-item/names", body: attributes).body.dig("data")
end
|
#create_phone_number_list_item(**attributes) ⇒ Object
75
76
77
|
# File 'lib/persona_api/resources/list_items.rb', line 75
def create_phone_number_list_item(**attributes)
ListItem.new post_request("list-item/phone-numbers", body: attributes).body.dig("data")
end
|