GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - nylas/nylas-ruby: Ruby bindings for the Nylas Platform APIs

BranchesTags
Open more actions menu

Latest commit

 

History

898 Commits
898 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
bin
bin
 
 
diagrams
diagrams
 
 
examples
examples
 
 
lib
lib
 
 
spec
spec
 
 
tasks
tasks
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
.rspec
.rspec
 
 
.rubocop.yml
.rubocop.yml
 
 
.rubocop_todo.yml
.rubocop_todo.yml
 
 
.yardopts
.yardopts
 
 
CHANGELOG.md
CHANGELOG.md
 
 
Contributing.md
Contributing.md
 
 
Gemfile
Gemfile
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
UPGRADE.md
UPGRADE.md
 
 
gem_config.rb
gem_config.rb
 
 
nylas.gemspec
nylas.gemspec
 
 
pull_request_template.md
pull_request_template.md
 
 

Repository files navigation

Nylas

Nylas Ruby SDK

The official Ruby SDK for Nylas โ€” the infrastructure that powers communications

version code coverage downloads license

๐Ÿ“– SDK Guide ยท ๐Ÿ“š API Reference ยท ๐Ÿš€ Sign up ยท ๐Ÿ’ก Samples ยท ๐Ÿ’ฌ Forum


The official Ruby SDK for Nylas โ€” the infrastructure that powers communications. Integrate with Gmail, Microsoft, IMAP, Zoom, and 250+ email, calendar, and meeting providers in 5 minutes. Covers Email, Calendar, Contacts, Scheduler, Notetaker, and Agent Accounts.

This repository is for contributors and anyone installing the SDK from source. If you just want to use the SDK in your app, head straight to the Ruby SDK guide on developer.nylas.com.

Get started

  1. Sign up for a free Nylas account.

  2. Follow the getting started guide to provision an application and create your API key.

  3. Bootstrap a project with the Nylas CLI:

    brew install nylas/nylas-cli/nylas
    nylas init

โš™๏ธ Install

Requirements: Ruby 3.0 or later.

Add the gem to your Gemfile:

gem "nylas"

Then install:

bundle install

Or install it directly:

gem install nylas

Build from source

git clone https://github.com/nylas/nylas-ruby.git
cd nylas-ruby
bundle install

Run the test suite with rspec spec.

โšก๏ธ Usage

Initialize the client with your API key:

require "nylas"

nylas = Nylas::Client.new(
  api_key: "NYLAS_API_KEY"
)

Then make a request โ€” for example, list a grant's calendars:

calendars, request_id, next_cursor = nylas.calendars.list(identifier: "GRANT_ID")

Every SDK call returns a tuple. List endpoints return [data, request_id, next_cursor, headers]; single-record endpoints return [data, request_id]. Destructure the elements you need and ignore the rest with _. Use next_cursor to paginate:

cursor = nil
loop do
  page, _request_id, cursor = nylas.calendars.list(
    identifier: "GRANT_ID",
    query_params: { page_token: cursor }
  )
  page.each { |calendar| puts calendar[:name] }
  break unless cursor
end

For step-by-step walkthroughs, see the developer guides:

  • Email
  • Calendar
  • Scheduler
  • Notetaker
  • Agent Accounts
  • Notifications & webhooks

Error handling

The SDK raises typed errors you can rescue. API failures raise Nylas::NylasApiError (with type, status_code, request_id, provider_error, headers); OAuth failures raise Nylas::NylasOAuthError; request timeouts raise Nylas::NylasSdkTimeoutError.

begin
  nylas.messages.find(identifier: "GRANT_ID", message_id: "MESSAGE_ID")
rescue Nylas::NylasApiError => e
  warn "Nylas API error #{e.status_code} (#{e.type}): #{e.message}"
rescue Nylas::NylasSdkTimeoutError => e
  warn "Request to #{e.url} timed out after #{e.timeout}s"
end

๐Ÿ’ก Examples

  • Local examples live in examples/ (messages, events, folders, notetaker).
  • The Nylas Samples org has end-to-end Ruby apps you can clone and run.

๐Ÿค– AI agents

nylas/skills drops Nylas into Claude Code, Cursor, Codex, and other agents that support the skills format:

npx skills add nylas/skills
/plugin marketplace add nylas/skills   # Claude Code

The CLI also installs an MCP server for Claude Desktop, Claude Code, Cursor, Windsurf, or VS Code:

brew install nylas/nylas-cli/nylas
nylas mcp install

Walkthrough: give AI agents email access via MCP.

๐Ÿ“š Reference

  • Ruby SDK guide
  • API reference
  • Getting started
  • Email ยท Calendar ยท Scheduler ยท Notetaker ยท Agent Accounts ยท Notifications
  • Data residency
  • Nylas CLI
  • Forum

โœจ Upgrading

See CHANGELOG.md for release notes, and UPGRADE.md for the 5.x โ†’ 6.x migration guide. The 6.x line targets Nylas API v3; if you're still on v2.7 or earlier, stay on the 5.x SDK.

๐Ÿ’™ Contributing

Bug reports, questions, and pull requests are welcome. See Contributing.md for the workflow, and the Nylas Forum for broader discussion.

๐Ÿ”’ Security

To report a security vulnerability, follow the Nylas Vulnerability Disclosure Policy. Please don't open a public GitHub issue for security reports.

๐Ÿ”— Other Nylas SDKs

  • nylas-nodejs
  • nylas-python
  • nylas-java (Java & Kotlin)

๐Ÿ“ License

MIT โ€” see LICENSE.txt.

About

Ruby bindings for the Nylas Platform APIs

nylas.com/docs

Resources

Readme
MIT license

Contributing

Contributing
Activity
Custom properties

Stars

103 stars

Watchers

62 watching

Forks

131 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.