我已经搜索了一个解决方案,但不能很好地理解答案,以便将它们应用到我的应用程序中。这是代码:
require "soundcloud"
require "open-url"
require 'taglib'
client = SoundCloud.new({
:client_id => 'MyClientID',
:client_secret => 'MyCLientSecret',
Shoes.app{
para "Input username"
@username = edit_line
para "Input password"
@password = edit_line
@but = button "OK"
@but.click({
:username => @username.text,
:password => @password.text
})
}
})