Use the com.nomagic.magicdraw.esi.EsiUtils utility class to work with projects from Teamwork Cloud.
Check javadoc for more details.
You can find the code examples in <modeling tool installation directory>\openapi\examples\teamworkcloud