![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
= Bitly4R
A Ruby API for the http://bit.ly URL-shortening service
== SimpleClient
This example uses a simpler construction and invocation technique. For when you just need the URLs, and not any additional data.
require 'rubygems' require 'bitly4r'
access_token = ENV['TOKEN'] long_url = 'http://rubyforge.org/'
client = Bitly4R.Token(access_token)
short_url = client.shorten(long_url) puts "short_url = #{short_url}"
raise 'what the?' unless (long_url == client.expand(short_url))
== Client
This example uses a full-fledged construction and invocation technique. The URLs are returned by the to_s methods of the Response objects, and additional data is made available.
require 'rubygems' require 'bitly4r'
access_token = ENV['TOKEN'] long_url = 'http://rubyforge.org/'
client = Bitly4R::Client.new(:token => access_token)
short_url = client.shorten(long_url).to_s puts "short_url = #{short_url}"
raise 'aww, cmon!' unless (long_url == client.expand(short_url).to_s)
== Support
This Client uses version 4.0.0 of the API (eg. '/v4/*'). It supports Access Token credentials.
This gem supports the following API commands:
POST /v4/shorten
POST /v4/expand
GET /v4/bitlinks/:bitlink
For more information, see the API documentation:
== Contributing
=== Issue Tracking and Feature Requests
== Community
=== Wiki
FAQs
Unknown package
We found that bitly4r 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.