title: Copy files from master branch from Gitlab to my server
body: <p>I apologise I don't really know how to ask that question. I work on a project which is hosted on <code>gitlab.com</code> and I want to write a script that run on my server to get all files from my project's master branch and copy it to a specific folder to not have to do it manually.</p>
  
  <p>My question is: how can I get this files using gitlab's API with language like <code>php</code> or <code>python</code> without setting up a git project on my server? </p>
  
  <p>I look the documentation and make all the stuff to get an ssh key but I can't find how to simply get files from the master branch.</p>
  
  <p>I don't need a full code but just the method to do it right</p>
  
  <p>I hope my question is not too vague. I thank you in advance</p>