How do you use the Xibo API to create your own application that syncs data to a DataSet?

When connecting remotely, I want to know how to create the original data. I would like to know in detail how to use a third party to retrieve data and how to use APIs to retrieve data.