mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Update qbo.rb
This commit is contained in:
@@ -20,8 +20,11 @@ class Qbo < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.get_oauth_consumer
|
def self.get_oauth_consumer
|
||||||
|
OAUTH_CONSUMER_KEY = Setting.plugin_redmine_qbo['settingsOAuthConsumerKey']
|
||||||
|
OAUTH_CONSUMER_SECRET = Setting.plugin_redmine_qbo['settingsOAuthConsumerSecret']
|
||||||
|
|
||||||
# Quickbooks Config Info
|
# Quickbooks Config Info
|
||||||
return OAuth::Consumer.new(Setting.plugin_redmine_qbo['settingsOAuthConsumerKey'], Setting.plugin_redmine_qbo['settingsOAuthConsumerSecret'], {
|
return OAuth::Consumer.new(OAUTH_CONSUMER_KEY, OAUTH_CONSUMER_SECRET, {
|
||||||
:site => "https://oauth.intuit.com",
|
:site => "https://oauth.intuit.com",
|
||||||
:request_token_path => "/oauth/v1/get_request_token",
|
:request_token_path => "/oauth/v1/get_request_token",
|
||||||
:authorize_url => "https://appcenter.intuit.com/Connect/Begin",
|
:authorize_url => "https://appcenter.intuit.com/Connect/Begin",
|
||||||
|
|||||||
Reference in New Issue
Block a user