Learn how to access locations using the API and write your own location plugins. Before you write your own location plugin, take some time and read the usage guide for locations to make sure you have a good understanding of what they are and what they can do for you.
If you are just looking to get started with ftrack and to track your files, consider using the storage scenario instead. With a storage scenario a location plugin will be automatically configured for both clients python and python (legacy).
You can read more about the implementation of location plugins here: