Module: Echowrap::API::Sandbox
Constant Summary
Constants included from Utils
Utils::API_KEY_CANNOT_CALL_THIS_METHOD, Utils::INVALID_PARAMETER, Utils::MISSING_OR_INVALID_KEY, Utils::MISSING_PARAMETER, Utils::RATE_LIMIT_EXCEEDED, Utils::SUCCESS
Instance Method Summary collapse
-
#sandbox_access(options = {}) ⇒ Echowrap::Sandbox
Gets access to the listed assets.
-
#sandbox_list(options = {}) ⇒ Echowrap::Sandbox
Lists detailed information about each asset in the sandbox.
Instance Method Details
#sandbox_access(options = {}) ⇒ Echowrap::Sandbox
Gets access to the listed assets. This method returns a secure token or URL that can be used by the application to access the asset. This method requires an API key that has been approved for the sandbox. NOTE: This method uses Oauth, the oauth parameters are generated and inserted by this gem automatically and do not need to be manually added.
40 41 42 |
# File 'lib/echowrap/api/sandbox.rb', line 40 def sandbox_access(={}) objects_from_response(Echowrap::Asset, :get, '/api/v4/sandbox/access', :assets, .merge(:oauth_request => true)) end |
#sandbox_list(options = {}) ⇒ Echowrap::Sandbox
Lists detailed information about each asset in the sandbox. This method describes each asset in detail but does not provide direct access to the assets. This method does not require an approved API key. Note that different sandboxes may return different sets of data and metadata.
22 23 24 |
# File 'lib/echowrap/api/sandbox.rb', line 22 def sandbox_list(={}) object_from_response(Echowrap::Sandbox, :get, '/api/v4/sandbox/list', nil, ) end |