go-credly

command module
v0.1.0-alpha2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 1 Imported by: 0

README

Go Credly API Data Fetcher

Keep a Changelog GitHub Release Go Reference go.mod LICENSE Build Status Go Report Card Codecov

About

Go-credly written in Go (hence the name) enables users to obtain Certification Badges earned on Credly's Certification Platform.

All you need is your Credly username and go-credly will fetch data from Credly's API, filter for active badges (can be overridden) and return either a Markdown or Standard Out.

Use case
  • You could use this tool to dynamically update a CV/Resume, Portfolios and Personal Websites using a Github Action, or just running the binary on a cron to fetch your credly badges.

Prerequisites

  • Credly Account with Public Visibility enabled. alt text
  • Go installed (version 1.22 or later)
  • Internet connection

Installation

Download for Binary and Docker Image TBC.

Building from Source:

1. git clone https://github.com/yourusername/go_credly.git
2. cd go_credly
3. go build
4. chmod +x ./go-credly

Usage

 ./go-credly fetch -h
This command fetches user badges from the Credly API using the provided user ID or username.

Usage:
  go-credly fetch [flags]

Flags:
  -h, --help              help for fetch
  -e, --include-expired   Include expired badges
  -o, --out-file string   Write results to a file with Markdown extension. e.g BADGES.md

Example:

./go-credly fetch shanilhirani

2024/07/17 14:50:33 Displaying Credly Badges to stdout
Badge Name: AWS Certified Solutions Architect – Professional
Badge Description: Earners of this certification have an extensive understanding of designing technical strategies to accomplish specific business goals. They demonstrated the ability to balance best practices and trade-offs based on business context. Badge owners are able to design solutions across multiple platforms and providers.
Badge Image URL: https://images.credly.com/images/2d84e428-9078-49b6-a804-13c15383d0de/image.png
Badge URL: https://www.credly.com/org/amazon-web-services/badge/aws-certified-solutions-architect-professional

Example 2:

Creating a CREDLY.md including expired badges.

./go-credly fetch shanilhirani

 ./go-credly fetch shanilhirani -e -o CREDLY
2024/07/17 15:00:27 Including expired badges
2024/07/17 15:00:28 Writing Credly Badges to CREDLY.md
2024/07/17 15:00:28 Credly Badges written to CREDLY.md

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for improvements or bug fixes.

Happy Coding!

Documentation

Overview

go-credly

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis
Package cmd fetch
Package cmd fetch
internal
fetch
Package fetch performs API requests
Package fetch performs API requests
tofile
Package tofile outputs the results into markdown
Package tofile outputs the results into markdown
pkgs
types
Package types for credly data
Package types for credly data

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL