Latest 1.1.0
License MIT
Platforms ios 7.0, requires ARC
Authors ,


Build Status

An Objective-C Gitlab Wrapper

Installation with CocoaPods

To include this library just add the following to your projects Podfile:

pod 'ObjcGitlabApi', '~> 1.0'


All of the calls to the API are executed from the singleton GLGitlabApi which uses blocks for the callbacks on each request. Each call returns the operation that it begins so that it maybe canceled if necessary.


Logging in will return the information for the user requesting the login.

[[GLGitlabApi sharedInstance] loginToHost:@""
                                  success:^(GLUser *user) {
                                        // Perform additional work here
                                  failure:^(NSError *error) {
                                        // Handle login failure

Fetching Projects

To get all projects for a user you would use the following method:

[[GLGitlabApi sharedInstance] getUsersProjectsSuccess:^(NSArray *projects) {
                                            // Process projects
                                               failure:^(NSError *error) {
                                            // Handle error

Fetch details about a project:

[[GLGitlabApi sharedInstance] getProjectWithId:1
                                       success:^(GLProject *project) {
                                         // Perform additional work here
                                       failure:^(NSError *error) {
                                        // Handle error here

The remaining calls in the api follow a similar pattern.

Model Objects

The library contains a collection of model objects to manage the data passed back and forth between the api and the library. It includes the following objects:

  • GLBranch
  • GLCommit
  • GLDiff
  • GLEvent
  • GLFile
  • GLGroup
  • GLIssue
  • GLMergeRequest
  • GLMilestone
  • GLNamespace
  • GLNote
  • GLProject
  • GLSnippet
  • GLTag
  • GLUser

Latest podspec

    "name": "ObjcGitlabApi",
    "version": "1.1.0",
    "summary": "An Objective-C library for interacting with the GitLab API.",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "Jeff Trespalacios": "[email protected]",
        "Jon Staff": "[email protected]"
    "platforms": {
        "ios": "7.0"
    "source": {
        "git": "",
        "tag": "1.1.0"
    "source_files": [
        "objc\ gitlab\ api/*.{h,m}",
        "objc\ gitlab\ api/**/*.{h,m}",
        "objc\ gitlab\ api/utilities/**/*.{h,m}"
    "public_header_files": [
        "objc\ gitlab\ api/GLGitlab.h",
        "objc\ gitlab\ api/models/*.h",
        "objc\ gitlab\ api/utilities/*.h"
    "requires_arc": true

Pin It on Pinterest

Share This