module Gitlab::Client::Session

Overview

Defines methods related to session.

See http://docs.gitlab.com/ce/api/session.html

Direct including types

Defined in:

gitlab/client/session.cr

Instance Method Summary

Instance Method Detail

def session(login : String, password : String) : JSON::Any #

Creates a new user session.

  • param [String] login The email or username of a user.
  • param [String] password The password of a user.
  • return [JSON::Any] Information about logged in user.
client.session("[email protected]", "secret12345")
client.session("jack", "secret12345")

[View source]