Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 422 Bytes

README.md

File metadata and controls

22 lines (19 loc) · 422 Bytes

go-credly

This Golang Module is used to get a user's badges from credly

Installtion

go get github.com/derickdiaz/[email protected]

Usage

svc := credly.CredlyService{}
badges, err := svc.GetBadges("username")
if err != nil {
    panic()
}
for _, badge := range badges.Data {
    fmt.Println(badge.GetName())
    fmt.Println(badge.GetIssueDate())
    fmt.Println(badge.GetExpiredDate())
}