{"id":13745068,"url":"https://github.com/sangupta/as3urlshortener","last_synced_at":"2026-02-07T19:03:06.422Z","repository":{"id":141346619,"uuid":"1994812","full_name":"sangupta/as3urlshortener","owner":"sangupta","description":"ActionScript 3 URL Shortening Library","archived":false,"fork":false,"pushed_at":"2012-05-03T16:19:59.000Z","size":120,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T13:03:51.386Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.sangupta.com/projects/as3urlshortener","language":"ActionScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sangupta.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":"2011-07-04T10:21:35.000Z","updated_at":"2013-12-03T07:58:43.000Z","dependencies_parsed_at":"2023-03-13T10:34:06.059Z","dependency_job_id":null,"html_url":"https://github.com/sangupta/as3urlshortener","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sangupta/as3urlshortener","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sangupta%2Fas3urlshortener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sangupta%2Fas3urlshortener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sangupta%2Fas3urlshortener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sangupta%2Fas3urlshortener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sangupta","download_url":"https://codeload.github.com/sangupta/as3urlshortener/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sangupta%2Fas3urlshortener/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264192316,"owners_count":23570759,"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","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-08-03T05:01:21.652Z","updated_at":"2026-02-07T19:03:06.364Z","avatar_url":"https://github.com/sangupta.png","language":"ActionScript","funding_links":[],"categories":["Unsorted"],"sub_categories":["Other API"],"readme":"as3urlshortener\n---------------\n\nURL Shortening library for ActionScript. Provides convenience classes to shorten URLs via the implemented services, or to expand a given shortened URL.\n\nCurrently implementations are available for the following services:\n\n* http://bit.ly\n* http://cli.gs\n* http://goo.gl\n* http://is.gd\n* http://shortr.net\n* http://tinyurl.com\n* http://t.co\n\nTypical Usage\n-------------\n\n```actionscript\nIUrlShortner shortener = new BitLyShortner(); // can be replaced with any shortening provider available\n  \npublic function shortenUrl(url:String):void {\n  // trace the version\n  trace('Shortener API version: ' + shortener.version);\n\n  if(!shortener.supportsAnonymousShortening) {\n    shortener.authenticate(myUserName, myPasswordOrApiKey);\n  }\n  \n  if(shortener.supportsShortening) {\n    shortener.shortenUrl(url, successHandler, errorHandler);\n  }\n}\n\npublic function successHandler(response:UrlShortenerResponse):void {\n  trace('Short url is: ' + response.shortUrl);\n  \n  // let's expand this to the full URL via the API\n  if(shortener.supportsExpansion) {\n    shortener.expandUrl(response.shortUrl, successHandler2, errorHandler);\n  }\n}\n\npublic function successHandler2(response:UrlShortenerResponse):void {\n  trace('Original expanded url is: ' + response.longUrl);\n}\n\npublic function errorHandler(event:Event):void {\n  trace('error occured during url shortening/expansion.');\n}\n```\n\nVersioning\n----------\n\nFor transparency and insight into our release cycle, and for striving to maintain backward compatibility, **as3urlshortener** will be maintained under the Semantic Versioning guidelines as much as possible.\n\nReleases will be numbered with the follow format:\n\n`\u003cmajor\u003e.\u003cminor\u003e.\u003cpatch\u003e`\n\nAnd constructed with the following guidelines:\n\n* Breaking backward compatibility bumps the major\n* New additions without breaking backward compatibility bumps the minor\n* Bug fixes and misc changes bump the patch\n\nFor more information on SemVer, please visit http://semver.org/.\n\nLicense\n-------\n\nCopyright 2011-2012, Sandeep Gupta\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsangupta%2Fas3urlshortener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsangupta%2Fas3urlshortener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsangupta%2Fas3urlshortener/lists"}