2011-04-07 08:02:49 +04:00
|
|
|
class TrackController < ApplicationController
|
2011-04-08 23:42:14 +04:00
|
|
|
require 'net/http'
|
|
|
|
require 'uri'
|
2011-04-07 08:02:49 +04:00
|
|
|
def listen
|
2011-04-10 04:15:29 +04:00
|
|
|
artist = 'The White Stripes'
|
|
|
|
track = 'Blue Orchid'
|
|
|
|
length = 157
|
2011-04-08 23:42:14 +04:00
|
|
|
|
2011-04-10 04:15:29 +04:00
|
|
|
Vkontakte.get(artist, track, length)
|
|
|
|
|
|
|
|
render :json => 0
|
2011-04-07 08:02:49 +04:00
|
|
|
end
|
|
|
|
end
|