I believe you have to transition to using a webhook when requesting data from HTTPS URLs. If you search for "HTTPS " you'll find some older threads asking about making HTTPS requests and that it is not possible on the Photon hardware. Hence the need for the webhook. This thread is kind of old but I believe it is still true:
Although, it looks like there is a library available if you want to still keep the process local to the Particle device: