Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

google_api_url_shortener

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google_api_url_shortener

  • 1.0.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

GoogleAPIUrlShortener

Goo.gl Url Shotener implemented by Google API. Initialize Shortener with API key to avoid reaching request limits accessed by anonymous request.

Installation

Add this line to your application's Gemfile:

gem 'google_api_url_shortener'

And then execute:

$ bundle

Or install it yourself as:

$ gem install google_api_url_shortener

Usage

First, register a Google project and get API key with urlshortener API.

google_shortener = GoogleAPIUrlShortener.new(GOOGLE_API_KEY)
google_shortener.shorten("https://github.com/hrs113355/google_api_url_shortener")

=> "https://goo.gl/LJbyHv"

google_shortener.expand("https://goo.gl/LJbyHv") # protocol is required

=> "https://github.com/hrs113355/google_api_url_shortener"

Changes

  • 1.0.1 - first implementation
  • 1.0.2 - add shorted url expand function

FAQs

Package last updated on 03 Sep 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc