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

google_url_shortner

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google_url_shortner

  • 1.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

== google_url_shortner

Client Ruby pour accèder à l'API Google URL Shortener.

== Installation

gem install google_url_shortner

= Nouveautés :

-- Google::UrlShortner::Analytics -- Cette classe nous donne un accès complet aux analytics de Url Shortner :

  • visiteurs
  • plateformes
  • navigateurs
  • pays

-- Google::UrlShortner::Client -- Shorten et Expand pour encoder et décoder une adress.

Exemple :

-- Google::UrlShortner::Client.shorten( long_url ) --

-- Google::UrlShortner::Client.expand( short_url) --

== Utilisation

pre.

require "rubygems"

require "google_url_shortner"

Création d'un client connecté à l'API Google Url Shorten

client = Google::UrlShortner::Client.new

Shortening an url.

resp = client.shorten("http://www.gtug-dakar.org")

#Getting analytics.

analytics = client.get_analytics_for(resp.short_url)

analytics.visitors # => le nombre de visiteurs de l'url encodé

analytics.countries # => les pays depuis lesquels l'url a été visité

analytics.platforms # OS utilisés par les clients

analytics.browsers # Navigateurs/agents utilisés

FAQs

Package last updated on 22 Jan 2011

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