### Install Productive API Client Gem Source: https://github.com/productiveio/api_client/blob/master/README.md Instructions to include the Productive API client gem in your Ruby project's Gemfile and install its dependencies. ```Ruby gem 'productive' ``` ```Ruby bundle install ``` -------------------------------- ### Query Productive API Resources with Ruby Source: https://github.com/productiveio/api_client/blob/master/README.md Examples demonstrating how to query Productive API resources using the gem, including fetching all, pagination, and filtering by attributes and date ranges. ```Ruby Productive::Project.all Productive::Project.paginate(per_page: 50).page(5).find Productive::Project.where(client_id: 1).all Productive::Project.where( created_at: { lt_eq: '2025-04-30', gt_eq: '2025-03-31' } ).paginate(page: 1, per_page: 200).all ``` -------------------------------- ### Customize Productive API Client Paginator Source: https://github.com/productiveio/api_client/blob/master/README.md Example showing how to configure a custom paginator for the Productive API client gem. ```Ruby Productive.configure do |config| config.paginator = MyCustomPaginator end ``` -------------------------------- ### Configure Productive API Client Base URL Source: https://github.com/productiveio/api_client/blob/master/README.md Example demonstrating how to change the default base URL for the Productive API client. ```Ruby Productive.configure do |config| config.base_url = 'http://api.productive.dev/api/v2/' end ``` -------------------------------- ### Initialize Productive API Client in Rails Source: https://github.com/productiveio/api_client/blob/master/README.md Command to generate the initializer for Productive API client in a Rails project, setting up API key and account ID. ```Ruby rails generate productive API_KEY ACCOUNT_ID ``` -------------------------------- ### Configure Productive API Client in Standalone Ruby Project Source: https://github.com/productiveio/api_client/blob/master/README.md Code snippet to configure the Productive API client with API key and account ID in a standalone Ruby project. ```Ruby Productive.configure do |config| config.api_key = ENV.fetch('productive_api_key') config.account_id = ACCOUNT_ID end ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.