{"id":16815600,"url":"https://github.com/ericzon/angular-bitly-generator","last_synced_at":"2026-02-10T08:32:45.628Z","repository":{"id":34328752,"uuid":"38248257","full_name":"ericzon/angular-bitly-generator","owner":"ericzon","description":"It generates bitly links on-the-fly. Two flavours: service and directive.","archived":false,"fork":false,"pushed_at":"2017-01-26T09:28:57.000Z","size":6,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-24T08:15:58.413Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericzon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-29T13:09:30.000Z","updated_at":"2017-01-26T09:28:58.000Z","dependencies_parsed_at":"2022-08-30T16:11:08.206Z","dependency_job_id":null,"html_url":"https://github.com/ericzon/angular-bitly-generator","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ericzon/angular-bitly-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericzon%2Fangular-bitly-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericzon%2Fangular-bitly-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericzon%2Fangular-bitly-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericzon%2Fangular-bitly-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericzon","download_url":"https://codeload.github.com/ericzon/angular-bitly-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericzon%2Fangular-bitly-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29294621,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T03:42:42.660Z","status":"ssl_error","status_checked_at":"2026-02-10T03:42:41.897Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-13T10:34:56.068Z","updated_at":"2026-02-10T08:32:45.613Z","avatar_url":"https://github.com/ericzon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# angular-bitly-generator\n\nLib created to generate bitly links on-the-fly. Two flavours: service and directive.\nFallback: if it exceeds the rate limit, returns the original link. It has been tested with angular 1.2.x \u0026 1.4.\n\n@See http://dev.bitly.com/rate_limiting.html\n\n## Installation:\n\n\tbower install angular-bitly-generator\n\n\tAdd the script to your main html file:\n\n\t\u003cscript type=\"text/javascript\" src=\"bitly-generator.js\"\u003e\u003c/script\u003e\n\n\tAnd then add the lib to your dependencies list:\n\n\tangular.module('myCoolApp',[..., 'bitly.generator', ...])\n\n## Configuration:\n\n\t.config(['bitlyProvider', function (bitlyProvider) {\n\t\tbitlyProvider.cfgBitly({\n\t\t\tlogin: 'myuser',\n\t\t\tapi: 'myapikey',\n\t\t\tdomain: 'https://api-ssl.bitly.com', \t// optional. (http://api.bit.ly by default)\n\t\t\tversion: '3' \t\t\t\t\t\t\t// optional. Tested with bitly api versions: 2.0.1 \u0026 3 (3 by default)\n\t\t});\n\t}])\n\n## Usage\n\n**Example 1:**\n\n\t\u003ca href=\"http://www.ondho.com\" bitly-generator\u003eOndho\u003c/a\u003e automagically it turns into: \u003ca href=\"http://bit.ly/ondho\"\u003eOndho\u003c/a\u003e\n\n**Example 2:**\n\n\tbitly.getShortUrl(longUrl).then(function(data){\n\t\tconsole.log(\"bit.ly DATA:\", data);\n\t\t$scope.bitlyUrl = data;\n\t\tconsole.log(\"Bit.ly\", $scope.bitlyUrl);\n\t}, function(e){\n\t\tconsole.log(\"Bit.ly ERROR: \", e);\n\t\t$scope.bitlyUrl = e;\n\t});\n\n\t... and then you can easily bind the result in your template. This case suits very well with the typical social share.\n\n\n## Dependencies\n\n  None :)\n\n## Tests\n\n  Not yet :(\n\n## Contributing\n\nIn lieu of a formal styleguide, take care to maintain the existing coding style.\nAdd unit tests for any new or changed functionality. Lint and test your code.\n\n## Author\n\n[Eric Lara](https://www.twitter.com/EricLaraAmat), at [Ondho](http://www.ondho.com).\n\n## License\n\n  MIT\n\n## Changelog\n\n* 0.0.5 Add workaround for angular jsonp callbacks error.\n\n  0.0.4 Improved docs.\n\n  0.0.3 Trivial update.\n\n  0.0.2 Added better documentation.\n\n  0.0.1 Initial commit\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericzon%2Fangular-bitly-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericzon%2Fangular-bitly-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericzon%2Fangular-bitly-generator/lists"}