google-apigoogle-contacts-apigoogle-playgroundgoogle-content-api

how to decode google contact v3 photo name


How to decode this image name (with extension)

<link rel="http://schemas.google.com/contacts/2008/rel#photo" type="image/*" href="https://www.google.com/m8/feeds/photos/media/xxx@test.com/2d4aaf09b20bb7"/>
  <link rel="self" type="application/atom+xml" href="https://www.google.com/m8/feeds/contacts/xxx@test.com/full/2d4aaf09b20bb7"/>
  <link rel="edit" type="application/atom+xml" href="https://www.google.com/m8/feeds/contacts/xxx@test.com/full/2d4aaf09b20bb7"/>

Solution

  • You are getting an HTTP 401 error, which means that you are not authorized to access the image (more info here).

    Are you accessing the image url directly with the browser or with your API client ? You need to provide a proper OAuth token to access the image.