Sha256: 7d6b39c282297d7497cef136eeef7637907a08856775f0a76489182777331945

Contents?: true

Size: 505 Bytes

Versions: 4

Compression:

Stored size: 505 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'bundler/setup'
require 'zoho_hub'

require 'dotenv'
Dotenv.load

ZohoHub.configure do |config|
  config.client_id = ENV['ZOHO_CLIENT_ID']
  config.secret = ENV['ZOHO_SECRET']
  config.redirect_uri = ENV['ZOHO_OAUTH_REDIRECT_URL']
  # config.debug = true
end

token_params = ZohoHub::Auth.refresh_token(ENV['ZOHO_REFRESH_TOKEN'])
ZohoHub.setup_connection(token_params)

include ZohoHub # rubocop:disable Style/MixinUsage

require 'pry'
Pry.start

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
zoho_hub-0.1.5 bin/console
zoho_hub-0.1.4 bin/console
zoho_hub-0.1.3 bin/console
zoho_hub-0.1.0 bin/console