Import Data from External Web Api In dynamics Nav 365BC

Hello Everyone,

I have to import data from external web api by calling method "Get_Pay_Roll" in dynamics Nav 365BC version 13.0.24623. I have already complete a project in which i create a VS project and call Dynamics Nav CodeUnit after some Interval . But in this task i don't know how can i import data in NAV from external web Api. Should i create a VS project to import data or use 1279 codeunit as written in this post ? I just want to know which process will be good in my case and what steps i should take. I read different blogs but i am not sure is it related to my task or not because most of the blog post are usnig Nav Page or Codeunit to Export data.