<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, file_get_contents('home.jpg'));
curl_setopt($ch, CURLOPT_URL,"https://photoslibrary.googleapis.com/v1/uploads/");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = [
'Accept...