Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/embloy/embloy-ruby

Embloy's Ruby SDK for interacting with your Embloy integration.
https://github.com/embloy/embloy-ruby

ruby-gem sdk sdk-ruby

Last synced: about 2 months ago
JSON representation

Embloy's Ruby SDK for interacting with your Embloy integration.

Awesome Lists containing this project

README

        

# [Embloy Ruby](https://rubygems.org/gems/embloy) · [![GitHub license](https://img.shields.io/badge/license-AGPL3.0-blue.svg)](https://github.com/Embloy/Embloy-Ruby/blob/main/LICENSE) [![gem version](https://img.shields.io/gem/v/embloy.svg?style=flat)](https://rubygems.org/gems/embloy) [![Issues](https://img.shields.io/github/issues/Embloy/Embloy-Ruby)](https://github.com/Embloy/Embloy-Ruby/issues) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/Embloy/Embloy-Ruby/pulls)

Embloy's Ruby SDK for interacting with your Embloy integration.

## Usage

Install Embloy-Ruby SDK:

```Bash
gem install embloy
```

Integrate it in your service:

```Ruby
# In your Rails application or script
require 'embloy'

# Make sure to replace 'CLIENT_TOKEN' in your .env file with your actual client token
session = {
mode: "job",
job_slug: "job#1",
success_url: "mypage.com/success",
cancel_url: "mypage.com/failure"
}
client = Embloy::Client.new(ENV.fetch('CLIENT_TOKEN'), session)
redirect_url = client.make_request

redirect_to(redirect_url, allow_other_host: true)
```

## Build Gem

```Bash
gem build embloy.gemspec
```

## Publish Gem

```Bash
gem push embloy-0.x.y.gem
```

---

© Carlo Bortolan, Jan Hummel

> Carlo Bortolan  · 
> GitHub [@carlobortolan](https://github.com/carlobortolan)  · 
> contact via [[email protected]](mailto:[email protected])
>
> Jan Hummel  · 
> GitHub [@github4touchdouble](https://github.com/github4touchdouble)  · 
> contact via [[email protected]](mailto:[email protected])