Skip to content

Commit

Permalink
Client api_host option
Browse files Browse the repository at this point in the history
  • Loading branch information
rsantamaria committed Apr 17, 2018
1 parent 230830e commit 2d6dd6e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/linkscape/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ def initialize(*args)
options = Hash === args.last ? args.pop : {}
@accessID = args.first ? args.shift : (options[:id] || options[:ID] || options[:accessID])
@secretKey = args.first ? args.shift : (options[:secret] || options[:secretKey] || options[:key])

@api_host = options[:api_host] || 'lsapi.seomoz.com'

@options = {
:apiHost => 'lsapi.seomoz.com',
:apiHost => @api_host,
:apiRoot => 'linkscape',
:accessID => @accessID,
:secretKey => @secretKey
Expand Down

0 comments on commit 2d6dd6e

Please sign in to comment.