我尝试将此api与json一起使用,我的输出是:
无法读取"标题":没有这样的变量
,
当我宣布$toke : <testbot> tok ::http::2
testid tt3896198, !id tt3896198
形成imdb
网址:http://api.rest7.com/v1/movie_info.php?imdb=tt3896198&title
bind pub "-|-" !id pub:id
proc pub:id { nick uhost hand channel arg } {
set id [lindex $arg 0]
set tok [http::geturl "http://api.rest7.com/v1/movie_info.php?imdb=$id&title"]
set data [json::json2dict [http::data $tok]]
http::cleanup $tok
dict with data
putnow "PRIVMSG $channel :$title $year $runtime $director $writer $score $genre"
}
}