Retrieving profile image from Google+ API

前端 未结 3 1470
滥情空心
滥情空心 2020-12-17 16:46

I am trying to pull JSON data from Google+ API. When I include the image attribute size of the image is set to 50px. How do I change the image size? I don\'t see it on the

3条回答
  •  一个人的身影
    2020-12-17 17:34

    At the end of your URL string there's a attribute called sz=50

    I just tried to change the attribute, and as result the image's size is changed aswell.

    Try these two urls:

    https://lh3.googleusercontent.com/-U353P5vNuRE/AAAAAAAAAAI/AAAAAAAABKM/a7U7bq251x0/photo.jpg?sz=50

    and

    https://lh3.googleusercontent.com/-U353P5vNuRE/AAAAAAAAAAI/AAAAAAAABKM/a7U7bq251x0/photo.jpg?sz=150

    See the difference?

提交回复
热议问题