【发布时间】:2017-01-12 11:30:16
【问题描述】:
我使用 API URL 在浏览器中获取 JSON 字符串。但我对我的网址做了一些修改。所以现在我不知道如何转到 JSON 字符串的下一页!。
我很早就使用了网址http://gitlab.company.com/api/v3/users?per_page=100&page=1。在此 URL 中,我只需 page=2 或 page=3... 并获取值。但现在我修改了http://gitlab.company.com/api/v3/users?private_token=GMxxyyzz9e8umondgBL 之类的URL。
现在我不知道如何获得每页 100 个结果 (per_page=100),而且我也不知道t know how to get the JSON string up to the last page (page=1`)。
我在新 URL 中尝试了一些更改并运行它。但我收到了401 unauthorized error
注意:我通过手动(通过使用浏览器)获取 JSON 字符串。不是代码。
【问题讨论】:
标签: json api url gitlab-api