Class: WhopSDK::Resources::Notifications
- Inherits:
-
Object
- Object
- WhopSDK::Resources::Notifications
- Defined in:
- lib/whop_sdk/resources/notifications.rb
Instance Method Summary collapse
-
#create(company_id: , content: , title: , experience_id: , icon_user_id: nil, rest_path: nil, subtitle: nil, user_ids: nil, request_options: {}) ⇒ WhopSDK::Models::NotificationCreateResponse
Some parameter documentations has been truncated, see Models::NotificationCreateParams for more details.
-
#initialize(client:) ⇒ Notifications
constructor
private
A new instance of Notifications.
Constructor Details
#initialize(client:) ⇒ Notifications
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Notifications.
48 49 50 |
# File 'lib/whop_sdk/resources/notifications.rb', line 48 def initialize(client:) @client = client end |
Instance Method Details
#create(company_id: , content: , title: , experience_id: , icon_user_id: nil, rest_path: nil, subtitle: nil, user_ids: nil, request_options: {}) ⇒ WhopSDK::Models::NotificationCreateResponse
Some parameter documentations has been truncated, see Models::NotificationCreateParams for more details.
Queues a notification to be sent to users in an experience or company team
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/whop_sdk/resources/notifications.rb', line 34 def create(params) parsed, = WhopSDK::NotificationCreateParams.dump_request(params) @client.request( method: :post, path: "notifications", body: parsed, model: WhopSDK::Models::NotificationCreateResponse, options: ) end |