Method: NetSuite::Rest::Utilities::Request.get
- Defined in:
- lib/netsuite/rest/utilities/request.rb
.get(options) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/netsuite/rest/utilities/request.rb', line 17 def get() email = encode(.fetch :email) signature = encode(.fetch :password) sandbox = .fetch(:sandbox, false) uri = determine_uri(.fetch(:uri), sandbox) response = make_request(:get, uri, email, signature) [response.code, JSON.parse(response.body)] end |