This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

API Get help
#3
(28.11.2023, 06:56)admin Wrote: The data looks tab-separated. This code will split the data into separate lines and then each line into separate items.

Code:
lines = data:split('\n')
for _, line in ipairs(lines) do
  items = line:split('\t')
  log(items)
end

Okay, I have had some time to look at this again, and I admit I need more help.
The code you provided put the data into separate items, that I should be able to put in group addresses with the grp.checkupdate, but I can't get it working!
Reply


Messages In This Thread
API Get help - by Novodk - 27.11.2023, 21:45
RE: API Get help - by admin - 28.11.2023, 06:56
RE: API Get help - by Novodk - 29.01.2024, 10:53
RE: API Get help - by admin - 29.01.2024, 10:58
RE: API Get help - by Novodk - 29.01.2024, 12:17
RE: API Get help - by admin - 29.01.2024, 12:54
RE: API Get help - by Novodk - 29.01.2024, 13:37
RE: API Get help - by admin - 29.01.2024, 13:58

Forum Jump: