Class: MessengerPlatform::Subscriber
- Inherits:
-
Object
- Object
- MessengerPlatform::Subscriber
- Defined in:
- lib/messenger_platform/subscriber.rb
Instance Method Summary collapse
Instance Method Details
#subscribe ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/messenger_platform/subscriber.rb', line 5 def subscribe result = HTTParty.post(subscription_url, verify_peer: false) if result.code == 200 puts "Subscribed successfully: #{ result.message }" else fail "Error Subscribing: #{ result.body }" end end |