Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krisquigley/simpl
Shortens URLs using the Goo.gl service
https://github.com/krisquigley/simpl
Last synced: 3 days ago
JSON representation
Shortens URLs using the Goo.gl service
- Host: GitHub
- URL: https://github.com/krisquigley/simpl
- Owner: krisquigley
- License: mit
- Created: 2015-02-18T04:51:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-04T09:50:42.000Z (over 9 years ago)
- Last Synced: 2024-05-02T01:44:16.947Z (7 months ago)
- Language: Ruby
- Size: 95.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simpl is a Googl URL shortener
The API is simple:
your_url = "http://example.com/"
your_api_key = "1234567890abcedf"
Simpl::Url.new(your_url, api_key: your_api_key).shortened
# -> http://goo.gl/123
If you're using Rails, it's probably best to setup an initializer with your key in it:# config/initializers/simpl.rb
Simpl.api_key = "1234567890abcedf"
# then use the API like this:
Simpl::Url.new(your_url).shortened# Testing
To test the project on your local machine, download it, run `bundle install`, then run `rake`.
# License
Please see [LICENSE](https://github.com/PlatformQ/simpl/blob/master/LICENSE)