Class: VerifyKit::Resources::WhatsApp
- Inherits:
-
Base
- Object
- Core::Service
- Base
- VerifyKit::Resources::WhatsApp
- Defined in:
- lib/verify_kit/resources/whatsapp.rb
Instance Method Summary collapse
Instance Method Details
#check(body = {}, params = {}) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/verify_kit/resources/whatsapp.rb', line 15 def check(body = {}, params = {}) response = post_request('check-whatsapp', body: body, params: params) return error_response(response) unless response.success? success_response(response) end |
#send(body = {}, params = {}) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/verify_kit/resources/whatsapp.rb', line 6 def send(body = {}, params = {}) body[:app] = 'whatsapp' response = post_request('start', body: body, params: params) return error_response(response) unless response.success? success_response(response) end |