mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 09:24:23 -05:00
Update qbo.rb
This commit is contained in:
@@ -15,7 +15,7 @@ class Qbo < ActiveRecord::Base
|
|||||||
OAUTH_CONSUMER_KEY = Setting.plugin_redmine_qbo['settingsOAuthConsumerKey']
|
OAUTH_CONSUMER_KEY = Setting.plugin_redmine_qbo['settingsOAuthConsumerKey']
|
||||||
OAUTH_CONSUMER_SECRET = Setting.plugin_redmine_qbo['settingsOAuthConsumerSecret']
|
OAUTH_CONSUMER_SECRET = Setting.plugin_redmine_qbo['settingsOAuthConsumerSecret']
|
||||||
|
|
||||||
::QB_OAUTH_CONSUMER = OAuth::Consumer.new(OAUTH_CONSUMER_KEY, OAUTH_CONSUMER_SECRET, {
|
$qb_oauth_consumer = 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",
|
||||||
@@ -31,7 +31,7 @@ class Qbo < ActiveRecord::Base
|
|||||||
|
|
||||||
def self.get_oauth_consumer
|
def self.get_oauth_consumer
|
||||||
# Quickbooks Config Info
|
# Quickbooks Config Info
|
||||||
return QB_OAUTH_CONSUMER
|
return $qb_oauth_consumer
|
||||||
end
|
end
|
||||||
|
|
||||||
# Get a quickbooks base object for type
|
# Get a quickbooks base object for type
|
||||||
|
|||||||
Reference in New Issue
Block a user