How to run a function after every X minutes in Unity Script?

I want to poll an Api and post some data every few minutes in unity while I am playing the game. How can this be achieved. Further should the polling be done in a separate thread?

Use InvokeRepeating().