Sha256: 5a947decfbd361c270aa9bff1d90d806b278a225b90eb659f639a9566a8db7c2

Contents?: true

Size: 481 Bytes

Versions: 37

Compression:

Stored size: 481 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)

self.send(:include, ZohoHub)

require 'pry'
Pry.start

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
zoho_hub-0.1.47 bin/console
zoho_hub-0.1.46 bin/console
zoho_hub-0.1.45 bin/console
zoho_hub-0.1.44 bin/console
zoho_hub-0.1.43 bin/console
zoho_hub-0.1.42 bin/console
zoho_hub-0.1.41 bin/console
zoho_hub-0.1.40 bin/console
zoho_hub-0.1.39 bin/console
zoho_hub-0.1.38 bin/console
zoho_hub-0.1.37 bin/console
zoho_hub-0.1.36 bin/console
zoho_hub-0.1.35 bin/console
zoho_hub-0.1.34 bin/console
zoho_hub-0.1.33 bin/console
zoho_hub-0.1.32 bin/console
zoho_hub-0.1.30 bin/console
zoho_hub-0.1.29 bin/console
zoho_hub-0.1.28 bin/console
zoho_hub-0.1.27 bin/console