Class: Roistat::Resources::Clients
- Defined in:
- lib/roistat/resources/clients.rb,
sig/roistat.rbs
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#campaign_contact_list(**body) ⇒ Object
POST /project/clients/campaign/contact/list.
-
#campaign_list(**body) ⇒ Object
POST /project/clients/campaign/list.
-
#detail_feed(client:) ⇒ Object
GET /project/clients/detail/feed?client=.
-
#import(clients) ⇒ Object
POST /project/clients/import — body is a JSON array.
-
#list(**body) ⇒ Object
POST /project/clients.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Roistat::Resources::Base
Instance Method Details
#campaign_contact_list(**body) ⇒ Object
POST /project/clients/campaign/contact/list
25 26 27 |
# File 'lib/roistat/resources/clients.rb', line 25 def campaign_contact_list(**body) post("project/clients/campaign/contact/list", body: body) end |
#campaign_list(**body) ⇒ Object
POST /project/clients/campaign/list
20 21 22 |
# File 'lib/roistat/resources/clients.rb', line 20 def campaign_list(**body) post("project/clients/campaign/list", body: body) end |
#detail_feed(client:) ⇒ Object
GET /project/clients/detail/feed?client=
15 16 17 |
# File 'lib/roistat/resources/clients.rb', line 15 def detail_feed(client:) @client.get("project/clients/detail/feed", params: {client: client}) end |
#import(clients) ⇒ Object
POST /project/clients/import — body is a JSON array
10 11 12 |
# File 'lib/roistat/resources/clients.rb', line 10 def import(clients) client.post("project/clients/import", body: clients) end |
#list(**body) ⇒ Object
POST /project/clients
5 6 7 |
# File 'lib/roistat/resources/clients.rb', line 5 def list(**body) post("project/clients", body: body) end |