Skip to content

Latest commit

 

History

History
118 lines (65 loc) · 3.34 KB

sc_push_wm_common.md

File metadata and controls

118 lines (65 loc) · 3.34 KB

Module sc_push_wm_common

Function Index

add_result/2
bad_request/3
encode_ref/1
ensure_path_item/2
ensure_path_items/2
ensure_path_items/3
error_to_json/1
get_media_type/1
parse_json/1
result_to_json/1
results_to_json/1
send_push/1
store_prop/2
store_props/2

Function Details

add_result/2


add_result(ReqData::sc_push_wm_helper:wrq(), Results::list()) -> sc_push_wm_helper:wrq()

bad_request/3

bad_request(ReqData, Ctx, Msg) -> any()

encode_ref/1


encode_ref(Ref::term()) -> binary()

ensure_path_item/2

ensure_path_item(Key, ReqData) -> any()

ensure_path_items/2

ensure_path_items(Keys, ReqData) -> any()

ensure_path_items/3

ensure_path_items(Rest, ReqData, Acc) -> any()

error_to_json/1

error_to_json(L) -> any()

get_media_type/1


get_media_type(CT::string()) -> string()

parse_json/1


parse_json(ReqBody::binary()) -> {ok, sc_types:proplist(atom(), string() | binary())} | {error, binary()}

result_to_json/1

result_to_json(X1) -> any()

results_to_json/1

results_to_json(Results) -> any()

send_push/1


send_push(Notification) -> Result

store_prop/2

store_prop(NewProp, PL) -> any()

store_props/2

store_props(Props, PL) -> any()