Bitly Button:
Currently, all Google Chrome extensions that use Bitly require multiple clicks in order to create a Bitlink. This is pretty inefficient, so I wanted to see if I could use Bitly's API to create a one-click solution (perhaps even one with a hotkey shortcut) that automatically creates a bitlink with the current URL, and saves that bitlink to your clipboard.
Steps:
- Register application with Bitly API [Done]
- Use OAuth to sign into bitly-button with bitly account [Done]
- Call the "Create Bitlink" API endpoint [Done]
- Create Chrome extension, get basic interactions working [Done]
- Integrate OAuth2.0 web flow into Chrome extension [Done] a) Save token into chrome's local storage [Done] b) See if any work needs to be done with invalidating tokens, expiring tokens, etc.
- Integrate HTTP POST request to Bitly for creating new links [Done]
- Error handling / messaging [Done]
- Any remaining polish (icons, styling, etc.)
Potential Add-On Features:
- Custom URLs [needs premium account]
- Do I need Typescript?
- Do I need React?
- Do I need Babel?
- Create Chrome shortcut
- Block extension from working on non-valid URLs (files, chrome://, bitly URLs)
- Dashboard?
- Only fetch auth token if doesn't exist / expired