https://github.com/resend/resend-ruby-example
This example shows how to use Resend with Ruby
https://github.com/resend/resend-ruby-example
Last synced: 9 months ago
JSON representation
This example shows how to use Resend with Ruby
- Host: GitHub
- URL: https://github.com/resend/resend-ruby-example
- Owner: resend
- License: mit
- Created: 2023-06-02T20:02:01.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-17T14:51:42.000Z (almost 3 years ago)
- Last Synced: 2024-11-15T12:13:43.116Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 4.88 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Resend with Ruby
This example shows how to use Resend with [Ruby](https://www.ruby-lang.org).
## Prerequisites
To get the most out of this guide, you’ll need to:
* [Create an API key](https://resend.com/api-keys)
* [Verify your domain](https://resend.com/domains)
## Installation
Get the [Resend Ruby SDK](https://github.com/resendlabs/resend-ruby).
```sh
# Via RubyGems
gem install resend
# Via Gemfile
gem 'resend'
```
## Instructions
1. Set your `RESEND_API_KEY` environment variable by running:
```sh
export RESEND_API_KEY="re_123456789"
```
2. Install dependencies:
```sh
bundle install
```
3. Execute the following command:
```sh
ruby index.rb
```
Or if you installed via Gemfile with `bundle install` run the following command:
```sh
bundle exec ruby index.rb
```
## License
MIT License