Class: NetSuite::Rest::Utilities::Request
- Inherits:
-
Object
- Object
- NetSuite::Rest::Utilities::Request
- Defined in:
- lib/netsuite/rest/utilities/request.rb
Constant Summary collapse
- PRODUCTION_API =
"https://rest.netsuite.com/rest"
- SANDBOX_API =
"https://rest.sandbox.netsuite.com/rest"
- DEFAULT_TIMEOUT =
30
- USE_SSL =
true
Class Method Summary collapse
Class Method Details
.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 |