Skip to content

Configuration

Sanif Himani edited this page Apr 24, 2024 · 3 revisions

To interact with the API, you must provide a valid auth token. This token can be generated from the Administration tab on Monday.com. For more authentication information, please look at monday.com's API documentation.

Once you have the authentication token, you can choose to configure the library globally or for a specific client.

Global Configuration

To configure the library globally, you can do the following:

require "monday_ruby"

Monday.configure do |config|
  config.token = <AUTH_TOKEN>
end

Configuring a Client

To configure it for a client, you can do the following:

require "monday_ruby"

client = Monday::Client.new(token: <AUTH_TOKEN>)

You can optionally pass in the version of the API you want to use using the version configuration field.

By default, the latest stable version is used. Read more about the version on monday.com's official documentation.

require "monday_ruby"

Monday.configure do |config|
  config.token = <AUTH_TOKEN>
  config.version = "2023-10"
end

Next Steps

Now that your client is configured:

  • Explore the Client Documentation for detailed guidance on using the client to interact with the API.
  • Refer to the specific resource pages in the sidebar for comprehensive API interactions.

Clone this wiki locally