Foursquare Api return just 1 result on `venue/photos` endpoint with userless authentication

有些话、适合烂在心里 提交于 2019-12-11 02:53:06

问题


The result I get from venue/photos has different with the User Authentication.

In the first one I just receive one result (one photo) in the result but in the the second one it return normal result that I expected.

--userless authentication--
https://api.foursquare.com/v2/venues/43695300f964a5208c291fe3/photos?client_id=****&client_secret=****&v=20181002
"photos": {
        "count": 1,
        "items": [
            {}
        ],
        "dupesRemoved": 0
    }

--user authentication--
https://api.foursquare.com/v2/venues/43695300f964a5208c291fe3/photos?oauth_token=****&v=20181002
"photos": {
        "count": 30,
        "items": [
            {}
        ],
        "dupesRemoved": 0
    }

I didn't found any reasonable answer in Foursquare Photo Doc why the result has problem.


回答1:


Beginning on May 31st, foursquare made five changes in order to simplify their API and maintain the quality of their service as their developer community grows.

https://developer.foursquare.com/docs/announcements#start-up-tier-launch

The quantity of photos and tips per venue will be changed to 1 for Sandbox Tier and 2 Personal Tier

I think this change apply to userless authentication.



来源:https://stackoverflow.com/questions/52605260/foursquare-api-return-just-1-result-on-venue-photos-endpoint-with-userless-aut

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!