rest-client:如何限制仅对前5条记录的请求?

问题描述

我是Ruby和rest-client的新手。 我想从以下端点获取前5篇文章。 如何调整我的请求,以便端点仅提取5条记录?

require 'rest-client'

resposnse = RestClient.get 'https://hacker-news.firebaseio.com/v0/topstories.json'

感谢您的帮助!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)