Google API php client: send etag
问题 I'm using the latest Google PHP Client library. How can I send the etag with this library? I've already tried something like this: $opt_params = array( 'etag' => 'F9iA7pnxqNgrkOutjQAa9F2k8HY/mOihMVEDLCvdSVCzwDmYHpSV'); $response = $youtube->channels->listChannels('snippet', array('id' => $channel_id), $opt_params); Thanks! 回答1: This post is a little long (if not too long). If you just need the code scroll down and skip my discussions. Please proceed as you wish. Background I don't know if