
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
This is an unofficial Aria SDK gem meant to be a bit simpler while also implementing all of the end points instead of a limited number of them. This product is issued with no warranty and is in no way any representation of Aria Systems.
The official sdk can be found here.
Add this line to your application's Gemfile:
gem 'aria_sdk_unofficial'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install aria_sdk_unofficial
To use this gem, instantiate the Aria object and use the call method to make an API call.
To instaniate the Aria object, a dictionary with the following keys is passed in as the only argument:
{
client_no: 123456,
auth_key:'auth_key_here',
api_type: 0,
env_type: 1
}
Note: One optional parameter can be assed in named api_name. This will be ignored, but is allowed.
aria = Aria.new({client_no: 123456, auth_key:'nfjhfruiebire', api_type: 0, env_type: 0})
After instantiating the object, the client_no, auth_key, and url are all accessible
puts aria.url
{
api_name: set_session,
options: {acct_no: 123456},
remove_nil: true
}
options and remove_nil are both optional parameters.
Options are the additional API parameters used.
Removing nill will strip parameters with nil values from the options prior to sending to Aria.
Defaults: remove_nil=false, options = {}
aria = Aria.new({client_no: 123456, auth_key:'nfjhfruiebire', api_type: 0, env_type: 0})
response = aria.call('authenticate_caller', {acct_no: 123456})
puts response.['session_id']
aria = Aria.new({client_no: 123456, auth_key:'nfjhfruiebire', api_type: 2, env_type: 0})
if response['error_code'] == 0
response['coa_list'].each do |coa|
puts "coa id #{coa['coa_id']}"
puts "coa code #{coa['coa_code']}"
puts "coa description #{coa['coa_description']}"
end
else
puts "API call failed, error code #{response['error_msg']}"
end
FAQs
Unknown package
We found that aria_sdk_unofficial demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.