{"id":15673591,"url":"https://github.com/jwebcoder/urlshortener","last_synced_at":"2025-10-15T20:47:00.704Z","repository":{"id":72769627,"uuid":"12342066","full_name":"JWebCoder/UrlShortener","owner":"JWebCoder","description":"Short urls using google api","archived":false,"fork":false,"pushed_at":"2013-09-01T22:22:40.000Z","size":132,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-10T03:22:24.031Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JWebCoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-24T11:06:29.000Z","updated_at":"2014-02-07T15:49:08.000Z","dependencies_parsed_at":"2023-02-23T12:15:59.444Z","dependency_job_id":null,"html_url":"https://github.com/JWebCoder/UrlShortener","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JWebCoder/UrlShortener","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JWebCoder%2FUrlShortener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JWebCoder%2FUrlShortener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JWebCoder%2FUrlShortener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JWebCoder%2FUrlShortener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JWebCoder","download_url":"https://codeload.github.com/JWebCoder/UrlShortener/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JWebCoder%2FUrlShortener/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279113347,"owners_count":26106458,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T15:41:22.321Z","updated_at":"2025-10-15T20:47:00.668Z","avatar_url":"https://github.com/JWebCoder.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"UrlShortener\n============\nShort urls using google api\n\n\n\nUrlShortener 0.1 javascript plugin\n-----\nIn our days, sometimes it's easier to have a short link for your page, that you can share with your friends.\n\nWith this in mind, i've created a small plugin in JavaScript to handle this problem.\n\nPlugin Functionalities\n-----\n* Create a short url\n* Retrieve long url\n* Get url analytics\n\nThis is how it works\n=====\n\nFirst of all, In order to use a Google service in your website, you need to get a Google API Key.\n\nFor that, follow this steps:\n* Visit the [Google APIs console](http://code.google.com/apis/console/).\n* Create a project.\n* Activate the URL Shortener API.\n* Click Keys in the left navigation. You can then copy and paste the key from this page.\n\nSetting the key\n-----\n\n    urlShortener.settings.apiKey = \"Your API Key\";\n    \n\nGenerate a short url\n-----\n\n    var shortLink = urlShortener.getLink({ \"longUrl\" : \"http://jwebcoder.wordpress.com\" });\n\nRemake the long url\n-----\n\n    var longLink = urlShortener.getLink({ \"shortUrl\" : \"http://goo.gl/hmL34J\" });\n    \n\nGet Url Analytics\n-----\n\n    var analytics = JSON.stringify(urlShortener.getLink({ \"shotUrl\" : \"http://goo.gl/hmL34J\" , \"projection\" : \"FULL\" }));\n    \nProjection parameter values\n-----\n\n* FULL - returns the full info about the link\n* ANALYTICS_TOP_STRINGS - country, browser specific data\n* ANALYTICS_CLICKS - clicks statistics\n\nIf you have any doubt, you can find me in [facebook](https://www.facebook.com/JWebCoder) or [Twitter](https://twitter.com/JWebCoder)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwebcoder%2Furlshortener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjwebcoder%2Furlshortener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwebcoder%2Furlshortener/lists"}