Archive for the ‘API’ Category

Authentication using Google Accounts for your Rails App

The methodology is very simple. Redirect the user to grant access to your app for a particular Google service. Once access is granted, use the authentication token to retrieve information related to the user. I demonstrate this with a very simple & idiotic Sinatra app which actually does nothing intelligent – apart from just outputting [...]

Script free SMS via 160by2.com

Courtesy – yet again, Ruby! #!/usr/bin/env ruby   require "rubygems" require "mechanize"   module SMS     class OneSixtyByTwo     attr_accessor :agent, :uid     attr_accessor :urls       def initialize(username, password)       @urls = {         :login => "http://m.160by2.com",         :sms => "http://m.160by2.com/SaveCompose.asp?l=1"   [...]