Project

safelyx

0.0
The project is in a healthy, maintained state
Safelyx API SDK for Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

Safelyx API

pypi

Safelyx API client

Safelyx API client for Ruby.

You can find the API documentation at https://safelyx.com/safe-api.

Some things to note:

  1. It's simply making an HTTP request to the Safelyx API.

  2. It provides types for the results and for the parameters.

  3. If the request to the API fails (HTTP error), it will throw an error, so you might want to rescue it.

Usage

It has a method per API endpoint.

gem install safelyx
require 'safelyx'

client = Safelyx::Client.new('your-key-code')

result = client.check_link('https://example.com')

puts result[:result] # Outputs a safety score between 0 (unsafe) and 10 (safe). -1 if there was an error, -2 if there are no checks remaining.

Development

Requires ruby.

make install
make format
make test
make build

Publishing

After committing and pushing with a new version in safelyx.gemspec, just run:

make publish