2016-01-18 95 views
1

我有一个网站,我使用Guzzle和Reddits json api获取reddit评论。虽然它往往很慢,但它运作良好,但在尝试通过/api/morechildren.json端点加载更多子项时遇到了问题。Reddit更多儿童API

试图获得更多的孩子时,我总是收到403禁止的错误。这些是我正在使用的参数,包括我正在使用的数据和端点。

array(2) { 
    ["request"]=> 
    string(44) "https://www.reddit.com/api/morechildren.json" 
    ["data"]=> 
    array(6) { 
    ["link_id"]=> 
    string(10) "t3_cz36xw7" 
    ["id"]=> 
    string(10) "t1_cz361ai" 
    ["depth"]=> 
    string(1) "1" 
    ["children"]=> 
    string(7) "cz36xw7" 
    ["sort"]=> 
    string(10) "confidence" 
    ["api_type"]=> 
    string(4) "json" 
    } 
} 

你可以看到,我试图打这里的API:无论我怎么努力,我得到https://www.reddit.com/dev/api/oauth#GET_api_morechildren

“字符串(116)“客户端错误响应[URL] https://www.reddit.com/api/morechildren.json [状态码] 403 [reason phrase]禁止“'

任何想法?

回答