Skip to content

Basic usage tutorial #102

@zhmq0124v

Description

@zhmq0124v

Dear gurus,

I am currently trying to get project list and branches of a project, but my code failed at the beginning. The exception is
com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: <title>Request Rejected</title>The requested URL was rejected. Please consult with your administrator.

Here is my code:
final String URL = "https://example.com";
final String token = "myToken";
api = GitlabAPI.connect(URL, token);
System.out.println(api.getProjects().size());

Could you please take a look?
A basic tutorial in readme would be better, I tried gitlab python API it works but I prefer to use Java.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions