跳至主要內容

Ruby SDK

小于 1 分钟

Ruby SDK

注意

Ruby SDK 尚未发布。如有兴趣请联系我们:

open in new windowDiscord Gorse推荐系统交流群

用法

require 'gorse'

client = Gorse.new('http://127.0.0.1:8087', 'api_key')

client.insert_feedback([
    Feedback.new("star", "bob", "vuejs:vue", "2022-02-24"),
    Feedback.new("star", "bob", "d3:d3", "2022-02-25"),
    Feedback.new("star", "bob", "dogfalo:materialize", "2022-02-26"),
    Feedback.new("star", "bob", "mozilla:pdf.js", "2022-02-27"),
    Feedback.new("star", "bob", "moment:moment", "2022-02-28")
])

client.get_recommend('10')