Class: Talkable::API::Share

Inherits:
Base
  • Object
show all
Defined in:
lib/talkable/api/share.rb

Constant Summary collapse

CHANNEL_FACEBOOK =
"facebook".freeze
CHANNEL_FACEBOOK_MESSAGE =
"facebook_message".freeze
CHANNEL_TWITTER =
"twitter".freeze
CHANNEL_SMS =
"sms".freeze
CHANNEL_OTHER =
"other".freeze

Class Method Summary collapse

Methods inherited from Base

get, post, put

Class Method Details

.create(short_url_code, channel) ⇒ Object



11
12
13
14
15
# File 'lib/talkable/api/share.rb', line 11

def create(short_url_code, channel)
  post "/offers/#{short_url_code}/shares", {
    channel: channel,
  }
end