public static void sendNoti(string token, LINEData[] msgs) { foreach (var msg in msgs) { List <KeyValuePair <string, string> > lineMsg = new List <KeyValuePair <string, string> >(); lineMsg.Add(new KeyValuePair <string, string>("message", msg.message)); if (msg.stickerPkg != 0 && msg.stickerid != 0) { lineMsg.Add(new KeyValuePair <string, string>("stickerPackageId", msg.stickerPkg.ToString())); lineMsg.Add(new KeyValuePair <string, string>("stickerId", msg.stickerid.ToString())); } lineMsg.Add(new KeyValuePair <string, string>("notificationDisabled", msg.notificationDisabled.ToString())); HTTPRequest request = new HTTPRequest(); _ = request.CurlRequestAsync(notifyUrl, "POST", lineMsg, "Bearer " + token); System.Threading.Thread.Sleep(1000); } }