
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
A ruby client for Box's View API.
Add this line to your application's Gemfile:
gem 'box_view'
And then execute:
$ bundle
Or install it yourself as:
$ gem install box_view
Configure with your Box View API key.
BoxView::Session.config do |config|
config.box_view_token = YOUR_API_KEY
end
Or configure a session and pass it to the API when you instatiate it.
session = BoxView::Session.new(token: YOUR_API_KEY)
BoxView::Api::Document.new(session)
Upload a document at a url.
doc = BoxView::Api::Document.new.upload("http://www.example.com/myfile.pdf", "My File")
Check the document's status
. When it is "done", you're ready to generate a viewing session.
doc = doc.reload
if doc.status == "done"
document_session = doc.document_session
view_url = document_session.view_url
end
Remove the document from Box View.
doc.destroy
List all of your Box View documents.
docs = BoxView::Api::Document.new.list
Generate a thumbnail of a document
f = File.open("myfile.pdf", 'w')
f.write(doc.thumbnail(100, 100))
f.flush
f.close
Download the conents in pdf or zip format
f = File.open("myfile.pdf", 'w')
f.write(doc.content("pdf"))
f.flush
f.close
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that box_view 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.