
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.