
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
= 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
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.