Method: NetSuite::Configuration#auth_header
- Defined in:
- lib/netsuite/configuration.rb
#auth_header(credentials = {}) ⇒ Object
196 197 198 199 200 201 202 |
# File 'lib/netsuite/configuration.rb', line 196 def auth_header(credentials={}) if !credentials[:consumer_key].blank? || !consumer_key.blank? token_auth(credentials) else user_auth(credentials) end end |