<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"># NAME

GitLab::API::v3 - A complete GitLab API v3 client. (DEPRECATED)

# SYNOPSIS

    use GitLab::API::v3;
    
    my $api = GitLab::API::v3-&gt;new(
        url   =&gt; $v3_api_url,
        token =&gt; $token,
    );
    
    my $branches = $api-&gt;branches( $project_id );

## DEPRECATED

This module is at the end of it's life as the latest GitLab no longer supports
the v3 API.  Instead, use [GitLab::API::v4](https://metacpan.org/pod/GitLab::API::v4).

# DESCRIPTION

This module provides a one-to-one interface with the GitLab
API v3.  Much is not documented here as it would just be duplicating
GitLab's own [API Documentation](http://doc.gitlab.com/ce/api/README.html).

Note that this distribution also includes the [gitlab-api-v3](https://metacpan.org/pod/gitlab-api-v3) command-line
interface (CLI).

# CREDENTIALS

Authentication credentials may be defined by setting either the ["token"](#token),
the ["login"](#login) and ["password"](#password), or the ["email"](#email) and ["password"](#password) arguments.

When the object is constructed the ["login"](#login), ["email"](#email), and ["password"](#password)
arguments are used to call ["session"](#session) to generate a token.  The token is
saved in the ["token"](#token) attribute, and the login/email/password arguments
are discarded.

If no credentials are supplied then the client will be anonymous and greatly
limited in what it can do with the API.

## CONSTANTS

Several values in the GitLab API require looking up the numeric value
for a meaning (such as `access_level` and `visibility_level`).
Instead of doing that, you can use [GitLab::API::v3::Constants](https://metacpan.org/pod/GitLab::API::v3::Constants).

## EXCEPTIONS

The API methods will all throw (hopefully) a useful exception if
an unsuccessful response is received from the API.  That is except for
`GET` requests that return a `404` response - these will return `undef`
for methods that return a value.

If you'd like to catch and handle these exceptions consider using
[Try::Tiny](https://metacpan.org/pod/Try::Tiny).

## LOGGING

This module uses [Log::Any](https://metacpan.org/pod/Log::Any) and produces some debug messages here
and there, but the most useful bits are the info messages produced
just before each API call.

## PROJECT ID

Note that many API calls require a `$project_id`.  This can be
specified as either a numeric project `ID`, or as a
`NAMESPACE_PATH/PROJECT_PATH` in many cases.  Perhaps even
all cases, but the GitLab documentation on this point is vague.

## RETURN VALUES

Many of this module's methods should return a value but do not
currently.  This is due to the fact that this module was built
as a strict representation of GitLab's own documentation which
is often inconsistent.

If you find a method that should provide a return value, but
doesn't currently, please verify that GitLab actually does
return a value and then submit a pull request or open an issue.
See ["CONTRIBUTING"](#contributing) for more info.

# REQUIRED ARGUMENTS

## url

The URL to your v3 API endpoint.  Typically this will be something
like `http://git.example.com/api/v3`.

# OPTIONAL ARGUMENTS

## token

A GitLab API token.
If set then neither ["login"](#login) or ["email"](#email) may be set.
Read more in ["CREDENTIALS"](#credentials).

## login

A GitLab user login name.
If set then ["password"](#password) must be set.
Read more in ["CREDENTIALS"](#credentials).

## email

A GitLab user email.
If set then ["password"](#password) must be set.
Read more in ["CREDENTIALS"](#credentials).

## password

A GitLab user password.
This must be set if either ["login"](#login) or ["email"](#email) are set.
Read more in ["CREDENTIALS"](#credentials).

## rest\_client

An instance of [GitLab::API::v3::RESTClient](https://metacpan.org/pod/GitLab::API::v3::RESTClient).  Typically you will not
be setting this as it defaults to a new instance and customization
should not be necessary.

## retries

The number of times the request should be retried in case it does not succeed.
Defaults to 0, meaning that a failed request will not be retried.

# UTILITY METHODS

## paginator

    my $paginator = $api-&gt;paginator( $method, @method_args );
    
    my $members = $api-&gt;paginator('group_members', $group_id);
    while (my $member = $members-&gt;next()) {
        ...
    }
    
    my $users_pager = $api-&gt;paginator('users');
    while (my $users = $users_pager-&gt;next_page()) {
        ...
    }
    
    my $all_open_issues = $api-&gt;paginator(
        'issues',
        $project_id,
        { state=&gt;'opened' },
    )-&gt;all();

Given a method who supports the `page` and `per_page` parameters,
and returns an array ref, this will return a [GitLab::API::v3::Paginator](https://metacpan.org/pod/GitLab::API::v3::Paginator)
object that will allow you to walk the records one page or one record
at a time.

# AWARD EMOJI METHODS

See [http://docs.gitlab.com/ce/api/award\_emoji.html](http://docs.gitlab.com/ce/api/award_emoji.html).

## issue\_award\_emojis

    my $award_emojis = $api-&gt;issue_award_emojis(
        $id,
        $issue_id,
    );

Sends a `GET` request to `/projects/:id/issues/:issue_id/award_emoji` and returns the decoded/deserialized response body.

## merge\_request\_award\_emojis

    my $award_emojis = $api-&gt;merge_request_award_emojis(
        $id,
        $merge_request_id,
    );

Sends a `GET` request to `/projects/:id/merge_requests/:merge_request_id/award_emoji` and returns the decoded/deserialized response body.

## issue\_award\_emoji

    my $award_emoji = $api-&gt;issue_award_emoji(
        $id,
        $issue_id,
        $award_id,
    );

Sends a `GET` request to `/projects/:id/issues/:issue_id/award_emoji/:award_id` and returns the decoded/deserialized response body.

## merge\_request\_award\_emoji

    my $award_emoji = $api-&gt;merge_request_award_emoji(
        $id,
        $merge_request_id,
        $award_id,
    );

Sends a `GET` request to `/projects/:id/merge_requests/:merge_request_id/award_emoji/:award_id` and returns the decoded/deserialized response body.

## create\_issue\_award\_emoji

    my $award_emoji = $api-&gt;create_issue_award_emoji(
        $id,
        $issue_id,
        \%params,
    );

Sends a `POST` request to `/projects/:id/issues/:issue_id/award_emoji` and returns the decoded/deserialized response body.

## create\_merge\_request\_award\_emoji

    my $award_emoji = $api-&gt;create_merge_request_award_emoji(
        $id,
        $merge_request_id,
        \%params,
    );

Sends a `POST` request to `/projects/:id/merge_requests/:merge_request_id/award_emoji` and returns the decoded/deserialized response body.

## delete\_issue\_award\_emoji

    my $award_emoji = $api-&gt;delete_issue_award_emoji(
        $id,
        $issue_id,
        $award_id,
    );

Sends a `DELETE` request to `/projects/:id/issues/:issue_id/award_emoji/:award_id` and returns the decoded/deserialized response body.

## delete\_merge\_request\_award\_emoji

    my $award_emoji = $api-&gt;delete_merge_request_award_emoji(
        $id,
        $merge_request_id,
        $award_id,
    );

Sends a `DELETE` request to `/projects/:id/merge_requests/:merge_request_id/award_emoji/:award_id` and returns the decoded/deserialized response body.

## issue\_note\_award\_emojis

    my $award_emojis = $api-&gt;issue_note_award_emojis(
        $id,
        $issue_id,
        $note_id,
    );

Sends a `GET` request to `/projects/:id/issues/:issue_id/notes/:note_id/award_emoji` and returns the decoded/deserialized response body.

## issue\_note\_award\_emoji

    my $award_emoji = $api-&gt;issue_note_award_emoji(
        $id,
        $issue_id,
        $note_id,
        $award_id,
    );

Sends a `GET` request to `/projects/:id/issues/:issue_id/notes/:note_id/award_emoji/:award_id` and returns the decoded/deserialized response body.

## create\_issue\_note\_award\_emoji

    my $award_emoji = $api-&gt;create_issue_note_award_emoji(
        $id,
        $issue_id,
        $note_id,
        \%params,
    );

Sends a `POST` request to `/projects/:id/issues/:issue_id/notes/:note_id/award_emoji` and returns the decoded/deserialized response body.

## delete\_issue\_note\_award\_emoji

    my $award_emoji = $api-&gt;delete_issue_note_award_emoji(
        $id,
        $issue_id,
        $note_id,
        $award_id,
    );

Sends a `DELETE` request to `/projects/:id/issues/:issue_id/notes/:note_id/award_emoji/:award_id` and returns the decoded/deserialized response body.

## merge\_request\_note\_award\_emojis

    my $award_emojis = $api-&gt;merge_request_note_award_emojis(
        $id,
        $merge_request_id,
        $note_id,
    );

Sends a `GET` request to `/projects/:id/merge_requests/:merge_request_id/notes/:note_id/award_emoji` and returns the decoded/deserialized response body.

## merge\_request\_note\_award\_emoji

    my $award_emoji = $api-&gt;merge_request_note_award_emoji(
        $id,
        $merge_request_id,
        $note_id,
        $award_id,
    );

Sends a `GET` request to `/projects/:id/merge_requests/:merge_request_id/notes/:note_id/award_emoji/:award_id` and returns the decoded/deserialized response body.

## create\_merge\_request\_note\_award\_emoji

    my $award_emoji = $api-&gt;create_merge_request_note_award_emoji(
        $id,
        $merge_request_id,
        $note_id,
        \%params,
    );

Sends a `POST` request to `/projects/:id/merge_requests/:merge_request_id/notes/:note_id/award_emoji` and returns the decoded/deserialized response body.

## delete\_merge\_request\_note\_award\_emoji

    my $award_emoji = $api-&gt;delete_merge_request_note_award_emoji(
        $id,
        $merge_request_id,
        $note_id,
        $award_id,
    );

Sends a `DELETE` request to `/projects/:id/merge_requests/:merge_request_id/notes/:note_id/award_emoji/:award_id` and returns the decoded/deserialized response body.

# BRANCH METHODS

See [http://doc.gitlab.com/ce/api/branches.html](http://doc.gitlab.com/ce/api/branches.html).

## branches

    my $branches = $api-&gt;branches(
        $project_id,
    );

Sends a `GET` request to `/projects/:project_id/repository/branches` and returns the decoded/deserialized response body.

## branch

    my $branch = $api-&gt;branch(
        $project_id,
        $branch_name,
    );

Sends a `GET` request to `/projects/:project_id/repository/branches/:branch_name` and returns the decoded/deserialized response body.

## protect\_branch

    $api-&gt;protect_branch(
        $project_id,
        $branch_name,
        \%params,
    );

Sends a `PUT` request to `/projects/:project_id/repository/branches/:branch_name/protect`.

## unprotect\_branch

    $api-&gt;unprotect_branch(
        $project_id,
        $branch_name,
    );

Sends a `PUT` request to `/projects/:project_id/repository/branches/:branch_name/unprotect`.

## create\_branch

    my $branch = $api-&gt;create_branch(
        $project_id,
        \%params,
    );

Sends a `POST` request to `/projects/:project_id/repository/branches` and returns the decoded/deserialized response body.

## delete\_branch

    $api-&gt;delete_branch(
        $project_id,
        $branch_name,
    );

Sends a `DELETE` request to `/projects/:project_id/repository/branches/:branch_name`.

# BUILD METHODS

See [http://docs.gitlab.com/ce/api/builds.html](http://docs.gitlab.com/ce/api/builds.html).

## builds

    my $builds = $api-&gt;builds(
        $id,
        \%params,
    );

Sends a `GET` request to `/projects/:id/builds` and returns the decoded/deserialized response body.

## commit\_builds

    my $builds = $api-&gt;commit_builds(
        $id,
        $sha,
        \%params,
    );

Sends a `GET` request to `/projects/:id/repository/commits/:sha/builds` and returns the decoded/deserialized response body.

## build

    my $build = $api-&gt;build(
        $id,
        $build_id,
    );

Sends a `GET` request to `/projects/:id/builds/:build_id` and returns the decoded/deserialized response body.

## build\_artifacts

    my $artifacts = $api-&gt;build_artifacts(
        $id,
        $build_id,
    );

Sends a `GET` request to `/projects/:id/builds/:build_id/artifacts` and returns the decoded/deserialized response body.

## build\_trace

    my $trace = $api-&gt;build_trace(
        $id,
        $build_id,
    );

Sends a `GET` request to `/projects/:id/builds/:build_id/trace` and returns the decoded/deserialized response body.

## cancel\_build

    my $build = $api-&gt;cancel_build(
        $id,
        $build_id,
    );

Sends a `POST` request to `/projects/:id/builds/:build_id/cancel` and returns the decoded/deserialized response body.

## retry\_build

    my $build = $api-&gt;retry_build(
        $id,
        $build_id,
    );

Sends a `POST` request to `/projects/:id/builds/:build_id/retry` and returns the decoded/deserialized response body.

## erase\_build

    my $build = $api-&gt;erase_build(
        $id,
        $build_id,
    );

Sends a `POST` request to `/projects/:id/builds/:build_id/erase` and returns the decoded/deserialized response body.

## keep\_build\_artifacts

    my $build = $api-&gt;keep_build_artifacts(
        $id,
        $build_id,
    );

Sends a `POST` request to `/projects/:id/builds/:build_id/artifacts/keep` and returns the decoded/deserialized response body.

# BUILD TRIGGER METHODS

See [http://docs.gitlab.com/ce/api/build\_triggers.html](http://docs.gitlab.com/ce/api/build_triggers.html).

## triggers

    my $triggers = $api-&gt;triggers(
        $id,
    );

Sends a `GET` request to `/projects/:id/triggers` and returns the decoded/deserialized response body.

## trigger

    my $trigger = $api-&gt;trigger(
        $id,
        $token,
    );

Sends a `GET` request to `/projects/:id/triggers/:token` and returns the decoded/deserialized response body.

## create\_trigger

    my $trigger = $api-&gt;create_trigger(
        $id,
    );

Sends a `POST` request to `/projects/:id/triggers` and returns the decoded/deserialized response body.

## delete\_trigger

    my $trigger = $api-&gt;delete_trigger(
        $id,
        $token,
    );

Sends a `DELETE` request to `/projects/:id/triggers/:token` and returns the decoded/deserialized response body.

# BUILD VARIABLE METHODS

See [http://docs.gitlab.com/ce/api/build\_variables.html](http://docs.gitlab.com/ce/api/build_variables.html).

## variables

    my $variables = $api-&gt;variables(
        $id,
    );

Sends a `GET` request to `/projects/:id/variables` and returns the decoded/deserialized response body.

## variable

    my $variable = $api-&gt;variable(
        $id,
        $key,
    );

Sends a `GET` request to `/projects/:id/variables/:key` and returns the decoded/deserialized response body.

## create\_variable

    my $variable = $api-&gt;create_variable(
        $id,
        \%params,
    );

Sends a `POST` request to `/projects/:id/variables` and returns the decoded/deserialized response body.

## update\_variable

    my $variable = $api-&gt;update_variable(
        $id,
        $key,
        \%params,
    );

Sends a `PUT` request to `/projects/:id/variables/:key` and returns the decoded/deserialized response body.

## delete\_variable

    my $variable = $api-&gt;delete_variable(
        $id,
        $key,
    );

Sends a `DELETE` request to `/projects/:id/variables/:key` and returns the decoded/deserialized response body.

# COMMIT METHODS

See [http://doc.gitlab.com/ce/api/commits.html](http://doc.gitlab.com/ce/api/commits.html).

## commits

    my $commits = $api-&gt;commits(
        $project_id,
        \%params,
    );

Sends a `GET` request to `/projects/:project_id/repository/commits` and returns the decoded/deserialized response body.

## commit

    my $commit = $api-&gt;commit(
        $project_id,
        $commit_sha,
    );

Sends a `GET` request to `/projects/:project_id/repository/commits/:commit_sha` and returns the decoded/deserialized response body.

## commit\_diff

    my $diff = $api-&gt;commit_diff(
        $project_id,
        $commit_sha,
    );

Sends a `GET` request to `/projects/:project_id/repository/commits/:commit_sha/diff` and returns the decoded/deserialized response body.

## commit\_comments

    my $comments = $api-&gt;commit_comments(
        $project_id,
        $commit_sha,
    );

Sends a `GET` request to `/projects/:project_id/repository/commits/:commit_sha/comments` and returns the decoded/deserialized response body.

## add\_commit\_comment

    $api-&gt;add_commit_comment(
        $project_id,
        $commit_sha,
        \%params,
    );

Sends a `POST` request to `/projects/:project_id/repository/commits/:commit_sha/comments`.

# DEPLOY KEY METHODS

See [http://doc.gitlab.com/ce/api/deploy\_keys.html](http://doc.gitlab.com/ce/api/deploy_keys.html).

## deploy\_keys

    my $keys = $api-&gt;deploy_keys(
        $project_id,
    );

Sends a `GET` request to `/projects/:project_id/keys` and returns the decoded/deserialized response body.

## deploy\_key

    my $key = $api-&gt;deploy_key(
        $project_id,
        $key_id,
    );

Sends a `GET` request to `/projects/:project_id/keys/:key_id` and returns the decoded/deserialized response body.

## create\_deploy\_key

    $api-&gt;create_deploy_key(
        $project_id,
        \%params,
    );

Sends a `POST` request to `/projects/:project_id/keys`.

## delete\_deploy\_key

    $api-&gt;delete_deploy_key(
        $project_id,
        $key_id,
    );

Sends a `DELETE` request to `/projects/:project_id/keys/:key_id`.

# GROUP METHODS

See [http://doc.gitlab.com/ce/api/groups.html](http://doc.gitlab.com/ce/api/groups.html).

## groups

    my $groups = $api-&gt;groups();

Sends a `GET` request to `/groups` and returns the decoded/deserialized response body.

## group

    my $group = $api-&gt;group(
        $group_id,
    );

Sends a `GET` request to `/groups/:group_id` and returns the decoded/deserialized response body.

## create\_group

    $api-&gt;create_group(
        \%params,
    );

Sends a `POST` request to `/groups`.

## transfer\_project

    $api-&gt;transfer_project(
        $group_id,
        $project_id,
    );

Sends a `POST` request to `/groups/:group_id/projects/:project_id`.

## delete\_group

    $api-&gt;delete_group(
        $group_id,
    );

Sends a `DELETE` request to `/groups/:group_id`.

## search\_groups

    my $groups = $api-&gt;search_groups(
        \%params,
    );

Sends a `GET` request to `/groups` and returns the decoded/deserialized response body.

## group\_members

    my $members = $api-&gt;group_members(
        $group_id,
    );

Sends a `GET` request to `/groups/:group_id/members` and returns the decoded/deserialized response body.

## group\_projects

    my $projects = $api-&gt;group_projects(
        $group_id,
        \%params,
    );

Sends a `GET` request to `/groups/:group_id/projects` and returns the decoded/deserialized response body.

## add\_group\_member

    $api-&gt;add_group_member(
        $group_id,
        \%params,
    );

Sends a `POST` request to `/groups/:group_id/members`.

## edit\_group\_member

    $api-&gt;edit_group_member(
        $group_id,
        $user_id,
        \%params,
    );

Sends a `PUT` request to `/groups/:group_id/members/:user_id`.

## remove\_group\_member

    $api-&gt;remove_group_member(
        $group_id,
        $user_id,
    );

Sends a `DELETE` request to `/groups/:group_id/members/:user_id`.

# ISSUE METHODS

See [http://doc.gitlab.com/ce/api/issues.html](http://doc.gitlab.com/ce/api/issues.html).

## all\_issues

    my $issues = $api-&gt;all_issues(
        \%params,
    );

Sends a `GET` request to `/issues` and returns the decoded/deserialized response body.

## issues

    my $issues = $api-&gt;issues(
        $project_id,
        \%params,
    );

Sends a `GET` request to `/projects/:project_id/issues` and returns the decoded/deserialized response body.

## issue

    my $issue = $api-&gt;issue(
        $project_id,
        $issue_id,
    );

Sends a `GET` request to `/projects/:project_id/issues/:issue_id` and returns the decoded/deserialized response body.

## create\_issue

    my $issue = $api-&gt;create_issue(
        $project_id,
        \%params,
    );

Sends a `POST` request to `/projects/:project_id/issues` and returns the decoded/deserialized response body.

## edit\_issue

    my $issue = $api-&gt;edit_issue(
        $project_id,
        $issue_id,
        \%params,
    );

Sends a `PUT` request to `/projects/:project_id/issues/:issue_id` and returns the decoded/deserialized response body.

# KEY METHODS

See [http://docs.gitlab.com/ce/api/keys.html](http://docs.gitlab.com/ce/api/keys.html).

## key

    my $key = $api-&gt;key(
        $key_id,
    );

Sends a `GET` request to `/keys/:key_id` and returns the decoded/deserialized response body.

# LABEL METHODS

See [http://doc.gitlab.com/ce/api/labels.html](http://doc.gitlab.com/ce/api/labels.html).

## labels

    my $labels = $api-&gt;labels(
        $project_id,
    );

Sends a `GET` request to `/projects/:project_id/labels` and returns the decoded/deserialized response body.

## create\_label

    my $label = $api-&gt;create_label(
        $project_id,
        \%params,
    );

Sends a `POST` request to `/projects/:project_id/labels` and returns the decoded/deserialized response body.

## delete\_label

    $api-&gt;delete_label(
        $project_id,
        \%params,
    );

Sends a `DELETE` request to `/projects/:project_id/labels`.

## edit\_label

    my $label = $api-&gt;edit_label(
        $project_id,
        \%params,
    );

Sends a `PUT` request to `/projects/:project_id/labels` and returns the decoded/deserialized response body.

# MERGE REQUEST METHODS

See [http://doc.gitlab.com/ce/api/merge\_requests.html](http://doc.gitlab.com/ce/api/merge_requests.html).

## merge\_requests

    my $merge_requests = $api-&gt;merge_requests(
        $project_id,
        \%params,
    );

Sends a `GET` request to `/projects/:project_id/merge_requests` and returns the decoded/deserialized response body.

## merge\_request

    my $merge_request = $api-&gt;merge_request(
        $project_id,
        $merge_request_id,
    );

Sends a `GET` request to `/projects/:project_id/merge_request/:merge_request_id` and returns the decoded/deserialized response body.

## create\_merge\_request

    my $merge_request = $api-&gt;create_merge_request(
        $project_id,
        \%params,
    );

Sends a `POST` request to `/projects/:project_id/merge_requests` and returns the decoded/deserialized response body.

## edit\_merge\_request

    my $merge_request = $api-&gt;edit_merge_request(
        $project_id,
        $merge_request_id,
        \%params,
    );

Sends a `PUT` request to `/projects/:project_id/merge_requests/:merge_request_id` and returns the decoded/deserialized response body.

## accept\_merge\_request

    $api-&gt;accept_merge_request(
        $project_id,
        $merge_request_id,
        \%params,
    );

Sends a `PUT` request to `/projects/:project_id/merge_requests/:merge_request_id/merge`.

## add\_merge\_request\_comment

    $api-&gt;add_merge_request_comment(
        $project_id,
        $merge_request_id,
        \%params,
    );

Sends a `POST` request to `/projects/:project_id/merge_requests/:merge_request_id/comments`.

## merge\_request\_comments

    my $comments = $api-&gt;merge_request_comments(
        $project_id,
        $merge_request_id,
    );

Sends a `GET` request to `/projects/:project_id/merge_requests/:merge_request_id/comments` and returns the decoded/deserialized response body.

# MILESTONE METHODS

See [http://doc.gitlab.com/ce/api/milestones.html](http://doc.gitlab.com/ce/api/milestones.html).

## milestones

    my $milestones = $api-&gt;milestones(
        $project_id,
        \%params,
    );

Sends a `GET` request to `/projects/:project_id/milestones` and returns the decoded/deserialized response body.

## milestone

    my $milestone = $api-&gt;milestone(
        $project_id,
        $milestone_id,
    );

Sends a `GET` request to `/projects/:project_id/milestones/:milestone_id` and returns the decoded/deserialized response body.

## create\_milestone

    $api-&gt;create_milestone(
        $project_id,
        \%params,
    );

Sends a `POST` request to `/projects/:project_id/milestones`.

## edit\_milestone

    $api-&gt;edit_milestone(
        $project_id,
        $milestone_id,
        \%params,
    );

Sends a `PUT` request to `/projects/:project_id/milestones/:milestone_id`.

## milestone\_issues

    my $issues = $api-&gt;milestone_issues(
        $project_id,
        $milestone_id,
    );

Sends a `GET` request to `/projects/:project_id/milestones/:milestone_id/issues` and returns the decoded/deserialized response body.

# OPEN SOURCE LICENSES METHODS

See [http://docs.gitlab.com/ce/api/licenses.html](http://docs.gitlab.com/ce/api/licenses.html).

## licenses

    my $licenses = $api-&gt;licenses(
        \%params,
    );

Sends a `GET` request to `/licenses` and returns the decoded/deserialized response body.

## license

    my $license = $api-&gt;license(
        $license_key,
        \%params,
    );

Sends a `GET` request to `/licenses/:license_key` and returns the decoded/deserialized response body.

# NAMESPACE METHODS

See [http://docs.gitlab.com/ce/api/namespaces.html](http://docs.gitlab.com/ce/api/namespaces.html).

## namespaces

    my $namespaces = $api-&gt;namespaces(
        \%params,
    );

Sends a `GET` request to `/namespaces` and returns the decoded/deserialized response body.

# NOTE METHODS

See [http://doc.gitlab.com/ce/api/notes.html](http://doc.gitlab.com/ce/api/notes.html).

## notes

    my $notes = $api-&gt;notes(
        $project_id,
        $thing_type,
        $thing_id,
    );

Sends a `GET` request to `/projects/:project_id/:thing_type/:thing_id/notes` and returns the decoded/deserialized response body.

## note

    my $note = $api-&gt;note(
        $project_id,
        $thing_type,
        $thing_id,
        $note_id,
    );

Sends a `GET` request to `/projects/:project_id/:thing_type/:thing_id/notes/:note_id` and returns the decoded/deserialized response body.

## create\_note

    $api-&gt;create_note(
        $project_id,
        $thing_type,
        $thing_id,
        \%params,
    );

Sends a `POST` request to `/projects/:project_id/:thing_type/:thing_id/notes`.

## edit\_note

    $api-&gt;edit_note(
        $project_id,
        $thing_type,
        $thing_id,
        $note_id,
        \%params,
    );

Sends a `PUT` request to `/projects/:project_id/:thing_type/:thing_id/notes/:note_id`.

# PROJECT METHODS

See [http://doc.gitlab.com/ce/api/projects.html](http://doc.gitlab.com/ce/api/projects.html).

## projects

    my $projects = $api-&gt;projects(
        \%params,
    );

Sends a `GET` request to `/projects` and returns the decoded/deserialized response body.

## owned\_projects

    my $projects = $api-&gt;owned_projects(
        \%params,
    );

Sends a `GET` request to `/projects/owned` and returns the decoded/deserialized response body.

## all\_projects

    my $projects = $api-&gt;all_projects(
        \%params,
    );

Sends a `GET` request to `/projects/all` and returns the decoded/deserialized response body.

## project

    my $project = $api-&gt;project(
        $project_id,
    );

Sends a `GET` request to `/projects/:project_id` and returns the decoded/deserialized response body.

## project\_events

    my $events = $api-&gt;project_events(
        $project_id,
    );

Sends a `GET` request to `/projects/:project_id/events` and returns the decoded/deserialized response body.

## create\_project

    my $project = $api-&gt;create_project(
        \%params,
    );

Sends a `POST` request to `/projects` and returns the decoded/deserialized response body.

## create\_project\_for\_user

    $api-&gt;create_project_for_user(
        $user_id,
        \%params,
    );

Sends a `POST` request to `/projects/user/:user_id`.

## edit\_project

    my $project = $api-&gt;edit_project(
        $project_id,
        \%params,
    );

Sends a `PUT` request to `/projects/:project_id` and returns the decoded/deserialized response body.

## fork\_project

    $api-&gt;fork_project(
        $project_id,
    );

Sends a `POST` request to `/pojects/fork/:project_id`.

## delete\_project

    $api-&gt;delete_project(
        $project_id,
    );

Sends a `DELETE` request to `/projects/:project_id`.

## project\_members

    my $members = $api-&gt;project_members(
        $project_id,
        \%params,
    );

Sends a `GET` request to `/projects/:project_id/members` and returns the decoded/deserialized response body.

## project\_member

    my $member = $api-&gt;project_member(
        $project_id,
        $user_id,
    );

Sends a `GET` request to `/project/:project_id/members/:user_id` and returns the decoded/deserialized response body.

## add\_project\_member

    $api-&gt;add_project_member(
        $project_id,
        \%params,
    );

Sends a `POST` request to `/projects/:project_id/members`.

## edit\_project\_member

    $api-&gt;edit_project_member(
        $project_id,
        $user_id,
        \%params,
    );

Sends a `PUT` request to `/projects/:project_id/members/:user_id`.

## remove\_project\_member

    $api-&gt;remove_project_member(
        $project_id,
        $user_id,
    );

Sends a `DELETE` request to `/projects/:project_id/members/:user_id`.

## share\_project\_with\_group

    $api-&gt;share_project_with_group(
        $id,
        \%params,
    );

Sends a `POST` request to `/projects/:id/share`.

## delete\_shared\_project\_link\_within\_group

    $api-&gt;delete_shared_project_link_within_group(
        $id,
        $group_id,
    );

Sends a `DELETE` request to `/projects/:id/share/:group_id`.

## project\_hooks

    my $hooks = $api-&gt;project_hooks(
        $project_id,
    );

Sends a `GET` request to `/projects/:project_id/hooks` and returns the decoded/deserialized response body.

## project\_hook

    my $hook = $api-&gt;project_hook(
        $project_id,
        $hook_id,
    );

Sends a `GET` request to `/project/:project_id/hooks/:hook_id` and returns the decoded/deserialized response body.

## create\_project\_hook

    $api-&gt;create_project_hook(
        $project_id,
        \%params,
    );

Sends a `POST` request to `/projects/:project_id/hooks`.

## edit\_project\_hook

    $api-&gt;edit_project_hook(
        $project_id,
        $hook_id,
        \%params,
    );

Sends a `PUT` request to `/projects/:project_id/hooks/:hook_id`.

## delete\_project\_hook

    my $hook = $api-&gt;delete_project_hook(
        $project_id,
        $hook_id,
    );

Sends a `DELETE` request to `/projects/:project_id/hooks/:hook_id` and returns the decoded/deserialized response body.

## set\_project\_fork

    $api-&gt;set_project_fork(
        $project_id,
        $forked_from_id,
    );

Sends a `POST` request to `/projects/:project_id/fork/:forked_from_id`.

## clear\_project\_fork

    $api-&gt;clear_project_fork(
        $project_id,
    );

Sends a `DELETE` request to `/projects/:project_id/fork`.

## search\_projects\_by\_name

    my $projects = $api-&gt;search_projects_by_name(
        $query,
        \%params,
    );

Sends a `GET` request to `/projects/search/:query` and returns the decoded/deserialized response body.

# PROJECT SNIPPET METHODS

See [http://doc.gitlab.com/ce/api/project\_snippets.html](http://doc.gitlab.com/ce/api/project_snippets.html).

## snippets

    my $snippets = $api-&gt;snippets(
        $project_id,
    );

Sends a `GET` request to `/projects/:project_id/snippets` and returns the decoded/deserialized response body.

## snippet

    my $snippet = $api-&gt;snippet(
        $project_id,
        $snippet_id,
    );

Sends a `GET` request to `/projects/:project_id/snippets/:snippet_id` and returns the decoded/deserialized response body.

## create\_snippet

    $api-&gt;create_snippet(
        $project_id,
        \%params,
    );

Sends a `POST` request to `/projects/:project_id/snippets`.

## edit\_snippet

    $api-&gt;edit_snippet(
        $project_id,
        $snippet_id,
        \%params,
    );

Sends a `PUT` request to `/projects/:project_id/snippets/:snippet_id`.

## delete\_snippet

    $api-&gt;delete_snippet(
        $project_id,
        $snippet_id,
    );

Sends a `DELETE` request to `/projects/:project_id/snippets/:snippet_id`.

## snippet\_content

    my $content = $api-&gt;snippet_content(
        $project_id,
        $snippet_id,
    );

Sends a `GET` request to `/projects/:project_id/snippets/:snippet_id/raw` and returns the decoded/deserialized response body.

# REPOSITORY METHODS

See [http://doc.gitlab.com/ce/api/repositories.html](http://doc.gitlab.com/ce/api/repositories.html).

## tree

    my $tree = $api-&gt;tree(
        $project_id,
        \%params,
    );

Sends a `GET` request to `/projects/:project_id/repository/tree` and returns the decoded/deserialized response body.

## blob

    my $blob = $api-&gt;blob(
        $project_id,
        $ref,
        \%params,
    );

Sends a `GET` request to `/projects/:project_id/repository/blobs/:ref` and returns the decoded/deserialized response body.

## raw\_blob

    my $raw_blob = $api-&gt;raw_blob(
        $project_id,
        $blob_sha,
    );

Sends a `GET` request to `/projects/:project_id/repository/raw_blobs/:blob_sha` and returns the decoded/deserialized response body.

## archive

    my $archive = $api-&gt;archive(
        $project_id,
        \%params,
    );

Sends a `GET` request to `/projects/:project_id/repository/archive` and returns the decoded/deserialized response body.

## compare

    my $comparison = $api-&gt;compare(
        $project_id,
        \%params,
    );

Sends a `GET` request to `/projects/:project_id/repository/compare` and returns the decoded/deserialized response body.

## contributors

    my $contributors = $api-&gt;contributors(
        $project_id,
    );

Sends a `GET` request to `/projects/:project_id/repository/contributors` and returns the decoded/deserialized response body.

# FILE METHODS

See [http://doc.gitlab.com/ce/api/repository\_files.html](http://doc.gitlab.com/ce/api/repository_files.html).

## file

    my $file = $api-&gt;file(
        $project_id,
        \%params,
    );

Sends a `GET` request to `/projects/:project_id/repository/files` and returns the decoded/deserialized response body.

## create\_file

    $api-&gt;create_file(
        $project_id,
        \%params,
    );

Sends a `POST` request to `/projects/:project_id/repository/files`.

## edit\_file

    $api-&gt;edit_file(
        $project_id,
        \%params,
    );

Sends a `PUT` request to `/projects/:project_id/repository/files`.

## delete\_file

    $api-&gt;delete_file(
        $project_id,
        \%params,
    );

Sends a `DELETE` request to `/projects/:project_id/repository/files`.

# RUNNER METHODS

See [http://docs.gitlab.com/ce/api/runners.html](http://docs.gitlab.com/ce/api/runners.html).

## runners

    my $runners = $api-&gt;runners(
        \%params,
    );

Sends a `GET` request to `/runners` and returns the decoded/deserialized response body.

## all\_runners

    my $runners = $api-&gt;all_runners(
        \%params,
    );

Sends a `GET` request to `/runners/all` and returns the decoded/deserialized response body.

## runner

    my $runner = $api-&gt;runner(
        $id,
    );

Sends a `GET` request to `/runners/:id` and returns the decoded/deserialized response body.

## update\_runner

    my $runner = $api-&gt;update_runner(
        $id,
        \%params,
    );

Sends a `PUT` request to `/runners/:id` and returns the decoded/deserialized response body.

## delete\_runner

    my $runner = $api-&gt;delete_runner(
        $id,
    );

Sends a `DELETE` request to `/runners/:id` and returns the decoded/deserialized response body.

## project\_runners

    my $runners = $api-&gt;project_runners(
        $id,
    );

Sends a `GET` request to `/projects/:id/runners` and returns the decoded/deserialized response body.

## enable\_project\_runner

    my $runner = $api-&gt;enable_project_runner(
        $id,
        \%params,
    );

Sends a `POST` request to `/projects/:id/runners` and returns the decoded/deserialized response body.

## disable\_project\_runner

    my $runner = $api-&gt;disable_project_runner(
        $id,
        $runner_id,
    );

Sends a `DELETE` request to `/projects/:id/runners/:runner_id` and returns the decoded/deserialized response body.

# SERVICE METHODS

See [http://doc.gitlab.com/ce/api/services.html](http://doc.gitlab.com/ce/api/services.html).

## edit\_project\_service

    $api-&gt;edit_project_service(
        $project_id,
        $service_name,
        \%params,
    );

Sends a `PUT` request to `/projects/:project_id/services/:service_name`.

## delete\_project\_service

    $api-&gt;delete_project_service(
        $project_id,
        $service_name,
    );

Sends a `DELETE` request to `/projects/:project_id/services/:service_name`.

# SESSION METHODS

See [http://doc.gitlab.com/ce/api/session.html](http://doc.gitlab.com/ce/api/session.html).

## session

    my $session = $api-&gt;session(
        \%params,
    );

Sends a `POST` request to `/session` and returns the decoded/deserialized response body.

# SETTINGS METHODS

See [http://docs.gitlab.com/ce/api/settings.html](http://docs.gitlab.com/ce/api/settings.html).

## settings

    my $settings = $api-&gt;settings();

Sends a `GET` request to `/application/settings` and returns the decoded/deserialized response body.

## update\_settings

    my $settings = $api-&gt;update_settings(
        \%params,
    );

Sends a `PUT` request to `/application/settings` and returns the decoded/deserialized response body.

# SIDEKIQ METHODS

See [http://docs.gitlab.com/ce/api/sidekiq\_metrics.html](http://docs.gitlab.com/ce/api/sidekiq_metrics.html).

## queue\_metrics

    my $metrics = $api-&gt;queue_metrics();

Sends a `GET` request to `/sidekiq/queue_metrics` and returns the decoded/deserialized response body.

## process\_metrics

    my $metrics = $api-&gt;process_metrics();

Sends a `GET` request to `/sidekiq/process_metrics` and returns the decoded/deserialized response body.

## job\_stats

    my $stats = $api-&gt;job_stats();

Sends a `GET` request to `/sidekiq/job_stats` and returns the decoded/deserialized response body.

## compound\_metrics

    my $metrics = $api-&gt;compound_metrics();

Sends a `GET` request to `/sidekiq/compound_metrics` and returns the decoded/deserialized response body.

# USER SNIPPET METHODS

See [http://docs.gitlab.com/ce/api/snippets.html](http://docs.gitlab.com/ce/api/snippets.html).

## user\_snippets

    my $snippets = $api-&gt;user_snippets();

Sends a `GET` request to `/snippets` and returns the decoded/deserialized response body.

## user\_snippet

    my $snippet = $api-&gt;user_snippet(
        $snippet_id,
    );

Sends a `GET` request to `/snippets/:snippet_id` and returns the decoded/deserialized response body.

## create\_user\_snippet

    $api-&gt;create_user_snippet(
        \%params,
    );

Sends a `POST` request to `/snippets`.

## edit\_user\_snippet

    $api-&gt;edit_user_snippet(
        $snippet_id,
        \%params,
    );

Sends a `PUT` request to `/snippets/:snippet_id`.

## delete\_user\_snippet

    $api-&gt;delete_user_snippet(
        $snippet_id,
    );

Sends a `DELETE` request to `/snippets/:snippet_id`.

## public\_snippets

    my $snippets = $api-&gt;public_snippets();

Sends a `GET` request to `/snippets/public` and returns the decoded/deserialized response body.

# SYSTEM HOOK METHODS

See [http://doc.gitlab.com/ce/api/system\_hooks.html](http://doc.gitlab.com/ce/api/system_hooks.html).

## hooks

    my $hooks = $api-&gt;hooks();

Sends a `GET` request to `/hooks` and returns the decoded/deserialized response body.

## create\_hook

    $api-&gt;create_hook(
        \%params,
    );

Sends a `POST` request to `/hooks`.

## test\_hook

    my $hook = $api-&gt;test_hook(
        $hook_id,
    );

Sends a `GET` request to `/hooks/:hook_id` and returns the decoded/deserialized response body.

## delete\_hook

    $api-&gt;delete_hook(
        $hook_id,
    );

Sends a `DELETE` request to `/hooks/:hook_id`.

# TAG METHODS

See [http://docs.gitlab.com/ce/api/tags.html](http://docs.gitlab.com/ce/api/tags.html).

## tags

    my $tags = $api-&gt;tags(
        $project_id,
    );

Sends a `GET` request to `/projects/:project_id/repository/tags` and returns the decoded/deserialized response body.

## tag

    my $tag = $api-&gt;tag(
        $project_id,
        $tag_name,
    );

Sends a `GET` request to `/projects/:project_id/repository/tags/:tag_name` and returns the decoded/deserialized response body.

## create\_tag

    my $tag = $api-&gt;create_tag(
        $project_id,
        \%params,
    );

Sends a `POST` request to `/projects/:project_id/repository/tags` and returns the decoded/deserialized response body.

## delete\_tag

    $api-&gt;delete_tag(
        $project_id,
        $tag_name,
    );

Sends a `DELETE` request to `/projects/:project_id/repository/tags/:tag_name`.

## create\_release

    $api-&gt;create_release(
        $project_id,
        $tag_name,
        \%params,
    );

Sends a `POST` request to `/projects/:project_id/repository/tags/:tag_name/release`.

## update\_release

    $api-&gt;update_release(
        $project_id,
        $tag_name,
        \%params,
    );

Sends a `PUT` request to `/projects/:project_id/repository/tags/:tag_name/release`.

# USER METHODS

See [http://doc.gitlab.com/ce/api/users.html](http://doc.gitlab.com/ce/api/users.html).

## users

    my $users = $api-&gt;users(
        \%params,
    );

Sends a `GET` request to `/users` and returns the decoded/deserialized response body.

## user

    my $user = $api-&gt;user(
        $user_id,
    );

Sends a `GET` request to `/users/:user_id` and returns the decoded/deserialized response body.

## create\_user

    $api-&gt;create_user(
        \%params,
    );

Sends a `POST` request to `/users`.

## edit\_user

    $api-&gt;edit_user(
        $user_id,
        \%params,
    );

Sends a `PUT` request to `/users/:user_id`.

## delete\_user

    my $user = $api-&gt;delete_user(
        $user_id,
    );

Sends a `DELETE` request to `/users/:user_id` and returns the decoded/deserialized response body.

## current\_user

    my $user = $api-&gt;current_user();

Sends a `GET` request to `/user` and returns the decoded/deserialized response body.

## current\_user\_ssh\_keys

    my $keys = $api-&gt;current_user_ssh_keys();

Sends a `GET` request to `/user/keys` and returns the decoded/deserialized response body.

## user\_ssh\_keys

    my $keys = $api-&gt;user_ssh_keys(
        $user_id,
    );

Sends a `GET` request to `/users/:user_id/keys` and returns the decoded/deserialized response body.

## user\_ssh\_key

    my $key = $api-&gt;user_ssh_key(
        $key_id,
    );

Sends a `GET` request to `/user/keys/:key_id` and returns the decoded/deserialized response body.

## create\_current\_user\_ssh\_key

    $api-&gt;create_current_user_ssh_key(
        \%params,
    );

Sends a `POST` request to `/user/keys`.

## create\_user\_ssh\_key

    $api-&gt;create_user_ssh_key(
        $user_id,
        \%params,
    );

Sends a `POST` request to `/users/:user_id/keys`.

## delete\_current\_user\_ssh\_key

    $api-&gt;delete_current_user_ssh_key(
        $key_id,
    );

Sends a `DELETE` request to `/user/keys/:key_id`.

## delete\_user\_ssh\_key

    $api-&gt;delete_user_ssh_key(
        $user_id,
        $key_id,
    );

Sends a `DELETE` request to `/users/:user_id/keys/:key_id`.

# SEE ALSO

[Net::Gitlab](https://metacpan.org/pod/Net::Gitlab) purports to provide an interface to the GitLab API, but
it is hard to tell due to a complete lack of documentation via either
POD or unit tests.

# CONTRIBUTING

This module is auto-generated from a set of YAML files defining the
interface of GitLab's API.  If you'd like to contribute to this module
then please feel free to make a
[fork on GitHub](https://github.com/bluefeet/GitLab-API-v3)
and submit a pull request, just make sure you edit the files in the
`authors/` directory instead of `lib/GitLab/API/v3.pm` directly.

Please see
[https://github.com/bluefeet/GitLab-API-v3/blob/master/author/README.pod](https://github.com/bluefeet/GitLab-API-v3/blob/master/author/README.pod)
for more information.

Alternatively, you can
[open a ticket](https://github.com/bluefeet/GitLab-API-v3/issues).

# AUTHORS

    Aran Clary Deltac &lt;bluefeet@gmail.com&gt;
    Dotan Dimet &lt;dotan@corky.net&gt;
    Nigel Gregoire &lt;nigelgregoire@gmail.com&gt;
    trunov-ms &lt;trunov.ms@gmail.com&gt;
    Marek R. Sotola &lt;Marek.R.Sotola@nasa.gov&gt;
    Josﾃｩ Joaquﾃｭn Atria &lt;jjatria@gmail.com&gt;
    Dave Webb &lt;github@d5ve.com&gt;

# ACKNOWLEDGEMENTS

Thanks to [ZipRecruiter](https://www.ziprecruiter.com/)
for encouraging their employees to contribute back to the open
source ecosystem.  Without their dedication to quality software
development this distribution would not exist.

# LICENSE

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
</pre></body></html>