
Security News
New CNA Scorecard Tool Ranks CVE Data Quality Across the Ecosystem
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
= googl-api
A very simple Ruby wrapper for the Google Url Shortener.
== INSTALLATION:
gem install googl-api
== USAGE:
Create a googl client using your API key and/or with ClientLogin auth information. (note: you will need to "Activate" the "URL Shortener API" on this page to retrieve and user your api_key: https://code.google.com/apis/console/b/0/#project:1090911256926:overview )
googl = GooglApi.new(:api_key => 'your_api_key', :email => 'google_email', :password => 'valid_password')
Then use the client to shorten, extend or review the analytics for a URL. If authentication is provided the short_url provided will be specific to the given user and will show up in the users history.
googl.shorten('http://www.google.com') googl.expand('http://goo.gl/fbsS') googl.analytics('http://goo.gl/fbsS') or googl.analytics('http://goo.gl/fbsS', 'FULL')
These methods will return a response object containing the short/long url and other values provide by the API
To access a users history you must provide authentication information
googl = GooglApi.new(:email => 'google_email', :password => 'valid_password') googl.history
This method returns a hash containing the authenticated users history
== ACKNOWLEDGEMENTS
Code heavily inspired/influenced by philnash's bitly gem https://github.com/philnash/bitly
== Contributing to googl-api
== Copyright
Copyright (c) 2011 John Allen. See LICENSE.txt for further details.
FAQs
Unknown package
We found that googl-api 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
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.