
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
This gem is the official library provided by Xtract to interact with our API.
You can read the API docs directly from here.
Add this line to your application's Gemfile:
gem 'xtract-sdk'
And then execute:
$> bundle
Or install it yourself as:
$> gem install xtract-sdk
First you need to configure your api key obtained from the platform:
XtractSDK.configure do |config|
config.api_key = 'API_KEY'
end
Also you can pass the key when creating the client directly:
client = XtractSDK::Client.new(api_key: 'API_KEY')
Then you can create a client and start making requests. We provide a convenient way to do this:
client = XtractSDK::Client.new
invoices = client
.invoices
.client_tax_id('SOME_TAX_ID')
.call
invoices.each do |invoice|
puts invoice.id
puts invoice.products
end
These are all the filtering options:
client_business_name
client_tax_id
provider_business_name
provider_tax_id
date_from
date_to
expiration_date_from
expiration_date_to
number
electronic_authorization_id
created_at_from
created_at_to
accounted ('pending', 'in_progress', 'completed', 'with_errors')
imputed (true, false)
approval_status ('unassigned', 'approved', 'rejected', 'approval_pending', 'on_hold')
client = XtractSDK::Client.new
invoice = client.invoice(ID)
puts invoice.id
puts invoice.products
client = XtractSDK::Client.new
client.update_invoice(ID, { accounted: 'completed' }) #=> :ok
You can check here all the error classes that the library raises.
Bug reports and pull requests are welcome on GitHub at https://github.com/xtractapp/ruby-sdk.
FAQs
Unknown package
We found that xtract-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.