Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You can use the <a href="https://github.com/gitlabhq/gitlabhq/blob/6-2-stable/doc/api/users.md#user-creation" rel="nofollow">GitLab API to create users</a> in a script. <a href="http://curl.haxx.se/docs/httpscripting.html" rel="nofollow">Recent versions of curl can url-encode</a> POST data for you. Otherwise spaces will have to be <code>%20</code> and <code>--data</code> instead of <code>--data-urlencode</code>.</p> <pre><code>curl --header "PRIVATE-TOKEN: QVy1PB7sTxfy4pqfZM1U" --data-urlencode "email=jon@doe.com&amp;password=defaultpassword&amp;username=jdoe&amp;name=Jon Doe" "http://example.com/api/v3/users" </code></pre> <p>Curl is the path of least resistance with your preferred shell language (in my case Bash). If you don't want to use curl to script creating your users there are numerous libraries for different languages to interact with the GitLab API. Take your pick. Popular libraries include:</p> <ul> <li>Java - <a href="https://github.com/timols/java-gitlab-api" rel="nofollow">java-gitlab-api</a></li> <li>PHP - <a href="https://github.com/m4tthumphrey/php-gitlab-api" rel="nofollow">php-gitlab-api</a></li> <li>Python - <a href="https://github.com/Itxaka/pyapi-gitlab" rel="nofollow">pyapi-gitlab</a>, <a href="https://github.com/gpocentek/python-gitlab" rel="nofollow">python-gitlab</a>, or <a href="https://github.com/alexvh/python-gitlab3" rel="nofollow">python-gitlab3</a></li> <li>Ruby - <a href="https://github.com/NARKOZ/gitlab" rel="nofollow">Gitlab wrapper</a></li> </ul> <p>I'm sure there are many more API libs for other languages just google for your preferred language and include <em>GitLab API</em> as part of the query.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload