one_signal v0.0.9 OneSignal.Param
Link to this section Summary
Functions
Build notifications parameter of request
Drop specific target segment
Drop specific target segments
Exclude player id
Exclude specific segment
Exclude segments
Send push notification from parameters
Put data
Put specific filter
Put notification title. Notification title to send to Android, Amazon, Chrome apps, and Chrome Websites.
Put message in parameters
Put player id
Put specific target segment
Put segments
Link to this section Functions
build(param)
Build notifications parameter of request
drop_segment(param, seg)
Drop specific target segment
iex> OneSignal.new
|> put_segment("Free Players")
|> drop_segment("Free Players")
drop_segments(param, segs)
Drop specific target segments
exclude_player_id(param, player_id)
Exclude player id
exclude_player_ids(param, player_ids)
exclude_segment(param, seg)
Exclude specific segment
exclude_segments(param, segs)
Exclude segments
notify(param)
Send push notification from parameters
put_data(param, key, value)
Put data
put_filter(param, filter)
Put specific filter
iex> OneSignal.new
|> put_message("Hello")
|> put_filter("{userId: asdf}")
put_heading(param, heading)
Put notification title. Notification title to send to Android, Amazon, Chrome apps, and Chrome Websites.
iex> OneSignal.new
|> put_heading("App Notice!")
|> put_message("Hello")
put_heading(param, language, heading)
put_message(param, message)
Put message in parameters
iex> OneSignal.new
|> put_message(:en, "Hello")
|> put_message(:ja, "はろー")
put_message(param, language, message)
put_player_id(param, player_id)
Put player id
put_player_ids(param, player_ids)
put_segment(param, segment)
Put specific target segment
iex> OneSignal.new
|> put_message("Hello")
|> put_segment("Top-Rank")
put_segments(param, segs)
Put segments