1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/docs/sdks/ruby.md

19 lines
563 B
Markdown
Raw Normal View History

---
id: ruby_sdk
title: Ruby SDK
---
2021-05-18 13:31:54 +02:00
> You will need your `API URL` and your `API token` in order to connect the Client SDK to you Unleash instance. You can find this information in the “Admin” section Unleash management UI. [Read more](../user_guide/api-token)
2021-05-04 16:08:21 +02:00
```sh
require 'unleash'
2021-05-04 16:08:21 +02:00
@unleash = Unleash::Client.new(
url: '<API url>',
app_name: 'simple-test',
2021-05-18 13:31:54 +02:00
custom_http_headers = {'Authorization': '<API token>'},
)
```
2021-05-04 16:08:21 +02:00
Read more at [github.com/Unleash/unleash-client-ruby](https://github.com/Unleash/unleash-client-ruby)