Gondee / SocialCurveManager

Social Curve Manger is a platform designed to enable monetization of social media platforms by means of 3rd party CPM advertising.
http://socialcurve.io
3 stars 1 forks source link

Google Link Shortener #4

Closed Gondee closed 8 years ago

Gondee commented 8 years ago

Need to add a Gem capable of managing links from google link shortener. There is some Gems available, so once we get the KEY from google, we should be able to integrate this fairly easily.

scojasp commented 8 years ago

Being that this will be for a project that is intended to generate profit, the best Gems to use will be the official API Gems, rather than someone else's Gems.

Google's own API client is google-api-client: https://developers.google.com/api-client-library/ruby/apis/urlshortener/v1?hl=en gem install google-api-client

This is currently in Alpha, but this beats having to worry about if other developers using the CC license will go after you.

Gondee commented 8 years ago

100% agree, ill do some research and see if the install base has had any issues. I know there are some solid OC ones out there, even ones in the ruby install path, but your right, first party is preferred.

Gondee commented 8 years ago

Ok, Google API checks out. I'm going to get to work on this now. Here is the reference material I will be using. https://developers.google.com/url-shortener/v1/getting_started

Edit: We are using Ruby 1.9.3 I believe, which is not supported by the official plugin. I will upgrade to the latest stable ruby in the LinkShortener Branch

Gondee commented 8 years ago

Installed on Gem Branch, Reference information here: https://github.com/joshnesbitt/google_url_shortener