title: Accessing GitLab via API with Ruby
body: <p>Trying to access my university's GitLab for the first time via API (I'm the repo owner but have no access to the console and can not edit config files or restart the server), I seem to lack some mandatory basics. Tried to use Ruby (no rails) with the Narkoz API wrapper. Unfortunately, there are no tutorials available which explain the very first step:</p>
  
  <p>How to connect to the server and authenticate using UID+passwd?</p>
  
  <p>Can anybody explain the process in human-readable instructions? The <a href="https://docs.gitlab.com/ce/integration/oauth2_generic.html" rel="nofollow noreferrer">GitLab Manual</a> was not helpful for me.</p>
  
  <p>I hope that I could then figure out how to add GitLab users to my repository. Don't want to add 100 users using the web interface.</p>