404 when GET contact photo from Yahoo API

I use ShuttleCloud

to import contacts, but it doesn't support working with contact photos. Since ShuttleCloud gives me a contact ID, I can easily get a contact photo from Google, but cannot from Yahoo. (As far as I understand, microsoft does not support a contact photo return mechanism ).

For example, I use url to get contact information:

my $url = 'https://social.yahooapis.com/v1/user/72KIKWBUXCMY6XVHD5B5UN52PU/contact/13?format=json';

      

Then I use the resulting URL for the GET image:

my $url = 'http://social.yahooapis.com/v1/user/72KIKWBUXCMY6XVHD5B5UN52PU/contact/13/Image/2';

      

Everything is according to the documentation . But Yahoo returns 404 Not Found on Accelerator

. If I use https

instead http

, Yahoo returns 404 Not Found

.

Code with GET request:

my $ua  = LWP::UserAgent->new();
my $req = HTTP::Request->new(GET => $url);
$req->header('Authorization' => 'Bearer '.$token);
my $resp = $ua->request($req);

      

PS All requests using Single Field (name, address, etc.) have the same return code and error.

My areas of application: Contacts - read / write; Social Directory (Profiles) - Read / Write public and private.

+3


source to share





All Articles