Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/embloy/embloy-ruby
- Owner: Embloy
- License: agpl-3.0
- Created: 2024-01-11T19:31:30.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-06-29T13:49:06.000Z (6 months ago)
- Last Synced: 2024-06-29T14:56:40.812Z (6 months ago)
- Topics: ruby-gem, sdk, sdk-ruby
- Language: Ruby
- Homepage: https://rubygems.org/gems/embloy
- Size: 24.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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_requestredirect_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])