🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

credly-ruby

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

credly-ruby

0.2.0
Rubygems
Version published
Maintainers
1
Created
Source

Gem Version CircleCI

Credly Ruby

An API client for the Credly REST API in ruby.

Credly API documentation can be found here:

https://www.credly.com/docs/

Installation

Add to your Gemfile:

gem 'credly-ruby'

Then bundle install.

Usage

Quick Start

client = Credly::Client.new(auth_token: 'my_organization_token')

client.badge_list(organization_id)

The Client class also accepts the following options:

OptionTypeDescriptionDefault
sandboxbooleanWhether to use the sandbox environment.false
versionstringThe API version to use.v1

Additional request examples can be found in https://github.com/riipen/credly-ruby/blob/main/spec/credly-ruby/actions

Errors

Any error code returned by the Credly API will result in one of the following expections

CodeException
400Credly::BadRequest
401Credly::Unauthorized
403Credly::Forbidden
404Credly::NotFound
410Credly::Gone
4xxCredly::ClientError
500Credly::InternalServerError
503Credly::ServiceUnavailable
5xxCredly::ServerError

License

Copyright (C) 2023 Riipen. See LICENSE for details.

FAQs

Package last updated on 17 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts