https://github.com/cwchentw/bitly
Shorten URLs with bitly.com
https://github.com/cwchentw/bitly
bitly c-application
Last synced: 4 months ago
JSON representation
Shorten URLs with bitly.com
- Host: GitHub
- URL: https://github.com/cwchentw/bitly
- Owner: cwchentw
- License: bsd-2-clause
- Created: 2014-09-08T10:12:21.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2022-01-09T23:34:25.000Z (about 4 years ago)
- Last Synced: 2025-01-17T23:43:39.229Z (12 months ago)
- Topics: bitly, c-application
- Language: C
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bitly
`bitly` - shorten URLs with the power of bitly.com
## Usage
```shell
$ bitly https://google.com.tw
https://bit.ly/3tf60Kv
```
## Prerequisites
* libcurl
* json-c
In addition, the program needs an access token from bitly.com. You need to sign up a bitly.com account and verify your email to get a token. See [this page](https://bitly.com/a/oauth_apps) for more.
## Install
Just run `make` in the root directory of this project. Then, move the executive `bitly` to a system executive directory like */usr/local/bin*.
## Breaking Changes
* 2022/01/09
* Load Bitly token from `BITLY_TOKEN` the environment variable
## Copyright
Copyright (c) 2022 Michelle Chen. Licensed under BSD