RxGitLabAPIClient

public class RxGitLabAPIClient

This class represents the main entry point to the RxGitLabKit library

This client is used for the communication with GitLabAPI.

  • Observable of the current user

    Declaration

    Swift

    public var currentUserObservable: Observable<User?> { get }
  • Default per page accoring to GitLab Docs

    Declaration

    Swift

    public static let defaultPerPage: Int
  • String representation of API v4 URI

    Declaration

    Swift

    public static var apiVersionURLString: String { get }
  • GitLab Host URL

    Declaration

    Swift

    public var hostURL: URL { get }
  • Private Token

    Declaration

    Swift

    public var privateToken: String? { get set }
  • OAuthToken

    Declaration

    Swift

    public var oAuthToken: String? { get set }
  • Changes the GitLab Host URL

    Declaration

    Swift

    public func changeHostURL(hostURL: URL)

    Parameters

    hostURL

    The desired host URL

  • Logs in a user using an username and password

    Declaration

    Swift

    public func logIn(username: String, password: String)

    Parameters

    username

    username or e-mail

    password

    password

  • Sets the private token for communication with GitLab API server

    Declaration

    Swift

    public func logIn(privateToken: String)

    Parameters

    privateToken

    A private token

  • Sets the OAuth token for communication with GitLab API server

    Declaration

    Swift

    public func logIn(oAuthToken: String)

    Parameters

    privateToken

    An OAuth token

  • Logs out the current user

    Declaration

    Swift

    public func logOut()