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 specific segment

Send push notification from parameters

Put specific filter

Put notification title. Notification title to send to Android, Amazon, Chrome apps, and Chrome Websites.

Put message in parameters

Put specific target segment

Link to this section Functions

Build notifications parameter of request

Link to this function

drop_segment(param, seg)

Drop specific target segment

iex> OneSignal.new

 |> put_segment("Free Players")
 |> drop_segment("Free Players")
Link to this function

drop_segments(param, segs)

Drop specific target segments

Link to this function

exclude_player_id(param, player_id)

Exclude player id

Link to this function

exclude_player_ids(param, player_ids)

Link to this function

exclude_segment(param, seg)

Exclude specific segment

Link to this function

exclude_segments(param, segs)

Exclude segments

Send push notification from parameters

Link to this function

put_data(param, key, value)

Put data

Link to this function

put_filter(param, filter)

Put specific filter

iex> OneSignal.new

  |> put_message("Hello")
  |> put_filter("{userId: asdf}")
Link to this function

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")
Link to this function

put_heading(param, language, heading)

Link to this function

put_message(param, message)

Put message in parameters

iex> OneSignal.new

 |> put_message(:en, "Hello")
 |> put_message(:ja, "はろー")
Link to this function

put_message(param, language, message)

Link to this function

put_player_id(param, player_id)

Put player id

Link to this function

put_player_ids(param, player_ids)

Link to this function

put_segment(param, segment)

Put specific target segment

iex> OneSignal.new

  |> put_message("Hello")
  |> put_segment("Top-Rank")
Link to this function

put_segments(param, segs)

Put segments