Skip to content

Commit

Permalink
Determine wsdl domain and account number from credential input
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveitaly committed Feb 18, 2017
1 parent 62ed3b5 commit 4ebb23a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bin/netsuite_config
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ command :init do |c|
FileUtils.cp File.expand_path('../../lib/templates/gemfile', __FILE__), 'Gemfile'
FileUtils.cp File.expand_path('../../lib/templates/gitignore', __FILE__), '.gitignore'

netsuite_email = ask("Email:")
netsuite_password = ask("Password:")

account = NetSuite::Rest::Utilities::Roles.get(
email:netsuite_email,
password: netsuite_password
)

puts "NetSuite Account ID: #{account.first[:account_id]}"
puts "Webservices: #{account.first[:wsdls][:webservices].first}"

`open .env`
end
end
Expand Down

0 comments on commit 4ebb23a

Please sign in to comment.