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

jquery-url-shortner

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jquery-url-shortner

jQuery plugin for Shortening URLs using Google URL shortener API.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

jQuery-URL-shortener

##Overview Jquery URL Shortener plugin using Google URL Shortener API

###Setting Google API Key

jQuery.urlShortener.settings.apiKey='YOUR_API_KEY___________';

###Shorten a URL

jQuery.urlShortener({
    longUrl: "http://hayageek.com/jquery-url-shortener/",
    success: function (shortUrl) {
        //shortUrl ->  Shortened URL
    },
    error: function(err)
    {
    	alert(JSON.stringify(err));
    }
});

###Short URL to Long URL

jQuery.urlShortener({
    shortUrl: shortUrlLink,
    success: function (longURL) {
		//longURL ->  original URL
    },
    error: function(err)
    {
    	alert(JSON.stringify(err));    
    }
});

###Get Short URL information (Analytics,Clicks)

jQuery.urlShortener({
    shortUrl: shortUrlLink,
    projection: "FULL",
    success: function (info) {
    
    },
    error: function(err)
    {
    	alert(JSON.stringify(err));    	
    }
});	

Projection types: FULL,ANALYTICS_CLICKS,ANALYTICS_TOP_STRINGS

###Tutorial

http://hayageek.com/jquery-url-shortener/

Keywords

FAQs

Package last updated on 13 Jul 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