{"id":27019098,"url":"https://github.com/jabbalaci/urlshortener-cs","last_synced_at":"2025-08-23T15:14:29.786Z","repository":{"id":46003031,"uuid":"284556024","full_name":"jabbalaci/UrlShortener-cs","owner":"jabbalaci","description":"A URL shortener command-line app. using bit.ly","archived":false,"fork":false,"pushed_at":"2022-08-06T07:30:51.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T17:19:00.772Z","etag":null,"topics":["api-client","bitly","csharp","url-shortener"],"latest_commit_sha":null,"homepage":"","language":"C#","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/jabbalaci.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":"2020-08-02T22:55:02.000Z","updated_at":"2022-08-05T14:34:16.000Z","dependencies_parsed_at":"2022-08-25T09:20:30.471Z","dependency_job_id":null,"html_url":"https://github.com/jabbalaci/UrlShortener-cs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jabbalaci/UrlShortener-cs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabbalaci%2FUrlShortener-cs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabbalaci%2FUrlShortener-cs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabbalaci%2FUrlShortener-cs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabbalaci%2FUrlShortener-cs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jabbalaci","download_url":"https://codeload.github.com/jabbalaci/UrlShortener-cs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabbalaci%2FUrlShortener-cs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271754352,"owners_count":24815181,"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-08-23T02:00:09.327Z","response_time":69,"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":["api-client","bitly","csharp","url-shortener"],"created_at":"2025-04-04T17:19:04.043Z","updated_at":"2025-08-23T15:14:29.743Z","avatar_url":"https://github.com/jabbalaci.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# URL Shortener (C#)\n\nAn interactive URL shortener CLI app. for [bit.ly](https://bitly.com/).\nImplemented in C#, using bit.ly's API v4.\n\nIt was tested under Linux and Windows.\n\n## Usage\n\n```bash\n$ ./UrlShortener\nLong URL: https://google.com\n\nhttps://bit.ly/2R9zFOR\n\n# expanded from shortened URL: https://google.com (matches)\n```\n\n## Build\n\nCompile and run:\n\n```bash\n$ dotnet run\n```\n\nMake a framework-dependent deployment:\n\n```bash\n$ dotnet publish -o dist -c Release\n```\n\n## Pre-requisite\n\nFor this to work, you need an access token from bit.ly. Don't worry, it's free.\nAfter registration you can generate one for yourself. Then, add it as an\nenvironment variable called `BITLY_ACCESS_TOKEN`. For instance, under Linux\nadd the following line to the end of your `~/.bashrc` file:\n\n```bash\nexport BITLY_ACCESS_TOKEN=\"...\"\n```\n\n## Related projects\n\n* I used [pyshorteners](https://github.com/ellisonleao/pyshorteners/blob/master/pyshorteners/shorteners/bitly.py) to figure out how to call bit.ly's API v4.\n\n* I have a [Nim implementation](https://github.com/jabbalaci/UrlShortener-nim) but that one uses an older API of bit.ly (v3).\n\n* I have a [Rust implementation](https://github.com/jabbalaci/UrlShortener-rs) too, which uses the newer API of bit.ly (v4).\n\nI recommend the Rust version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjabbalaci%2Furlshortener-cs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjabbalaci%2Furlshortener-cs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjabbalaci%2Furlshortener-cs/lists"}