Giter VIP home page Giter VIP logo

jquery-url-shortener's Introduction

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/

jquery-url-shortener's People

Contributors

hayageek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

jquery-url-shortener's Issues

Synchronic Request

Hello!

Is it any possibility to make the resquest as synchronous? I mean, wait for the url shortener to answer to render the page?

Thanks!

Issue with Google JS API

Seems to be a current issue with the plugin, possibly due to a change with the Google JS API.

Plugin was working fine, but, now getting the following error:

{"code":403,"data":[{"domain":"usageLimits","reason":"dailyLimitExceededUnreg","message":"Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.","extendedHelp":"https://code.google.com/apis/console"}],"message":"Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."}

I also see no reported usage in my Google Developer Console - so, my hunch is that the API Key is not being set properly.

Returns undefined in ie9.

Hi,

I do not have much experience with jQuery, so maybe this is a well known bug with ie9. Anyway - the html is not passed to the container when clicking the button.

Edit: I checked the variable with the short URL, and it is returning "undefined".

It would be nice if you could provide a workaround within the plugin.
Thanks for your work!

regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.