<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px"><div id="yui_3_16_0_ym19_1_1484225037185_4897">Hello</div><div id="yui_3_16_0_ym19_1_1484225037185_4897"><br></div><div id="yui_3_16_0_ym19_1_1484225037185_4897">It counts perfectly in an erlang console</div><div id="yui_3_16_0_ym19_1_1484225037185_4897"><br></div><div id="yui_3_16_0_ym19_1_1484225037185_4897" dir="ltr">but here I need to send 70 push tokens with an interval 1 minute - but it sends with intervals 6-10 seconds</div><div id="yui_3_16_0_ym19_1_1484225037185_4809"><br></div><div id="yui_3_16_0_ym19_1_1484225037185_5011"><br></div><div id="yui_3_16_0_ym19_1_1484225037185_4876">send_it(_A, BinToken) -></div><div id="yui_3_16_0_ym19_1_1484225037185_4877"> timer:sleep(60000),</div><div id="yui_3_16_0_ym19_1_1484225037185_4878"> lager:info("The BinToken is in Send_it: ~p ~n",[BinToken]),</div><div id="yui_3_16_0_ym19_1_1484225037185_4879"><br></div><div id="yui_3_16_0_ym19_1_1484225037185_4880"><br></div><div id="yui_3_16_0_ym19_1_1484225037185_4881"> Body = "{\"app_id\": \"c35654655556445454550a6\",\"contents\": {\"en\": \"English Message\"}, \"include_player_ids\": [\"" ++ binary_to_list(BinToken) ++"\"]}",</div><div id="yui_3_16_0_ym19_1_1484225037185_4882"><br id="yui_3_16_0_ym19_1_1484225037185_4883"></div><div id="yui_3_16_0_ym19_1_1484225037185_4884"> Request = {"https://onesignal.com/api/v1/notifications",</div><div id="yui_3_16_0_ym19_1_1484225037185_4885"> [{"Authorization","Basic YTM25464464546456565QyZDlh"}], "application/json", Body},</div><div id="yui_3_16_0_ym19_1_1484225037185_4886"><br id="yui_3_16_0_ym19_1_1484225037185_4887"></div><div id="yui_3_16_0_ym19_1_1484225037185_4888"> httpc:request(post, Request, [], []).</div><div id="yui_3_16_0_ym19_1_1484225037185_4889"><br id="yui_3_16_0_ym19_1_1484225037185_4890"></div><div id="yui_3_16_0_ym19_1_1484225037185_4891"><br id="yui_3_16_0_ym19_1_1484225037185_4892"></div><div id="yui_3_16_0_ym19_1_1484225037185_4893">annoy (BinToken) -></div><div id="yui_3_16_0_ym19_1_1484225037185_4894"> [send_it(A, BinToken) || A <- lists:seq(1,70)].</div><div dir="ltr" id="yui_3_16_0_ym19_1_1484225037185_4895">++++++++++++++++++++++++++++++++++++++++++++++++++++</div><div dir="ltr" id="yui_3_16_0_ym19_1_1484225037185_4895">where to dig?</div></div></body></html>