class TwitPhoto::Adaptors::LockerzAdaptor
Public Class Methods
getImageUrl(url)
click to toggle source
# File lib/adaptors.rb, line 21 def self.getImageUrl url # TweetPhoto was a good name, why they changed twice I don't understand if url.index("http://tweetphoto.com") != 0 && url.index("http://plixi.com") != 0 && url.index("http://lockerz.com") != 0 return nil end return "http://api.plixi.com/api/tpapi.svc/imagefromurl?size=medium&url=" + url end