Skip to content

Conversation

@kzaitsev
Copy link
Contributor

Add ability to call session.

package main

import (
    "fmt"
    "github.com/plouc/go-gitlab-client"
)

func main() {
    client := gogitlab.NewGitlab("https://gitlab.com", "/api/v3", "")

    session, err := client.GetSession("admin@example.com", "ExamplePass")
    if err != nil {
        fmt.Println(err)
    }

    fmt.Println(session.PrivateToken)
}

@plouc
Copy link
Owner

plouc commented Aug 4, 2015

@Bugagazavr, sorry for the (very, very…) long delay, can you please add some tests on this PR ?

@kzaitsev
Copy link
Contributor Author

kzaitsev commented Aug 5, 2015

@plouc hello, gitlab now works as oauth2 provider, currently im not need this method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants