Thanks Mat. I have a ~semi~
related question.
For the etsy images, i *need* them in https. Right now, I'm using this function to "convert" http to https images:
private function httpsImage($url)
{
preg_match('/http:\/\/img(\d+)(?:-ec|-llalt)?.
etsystatic.com\/(.*)/i', $url, $matches);
$https = "
https://ny-image$matches[1].
etsy.com/$matches[2]";
return $https;
}
I've had to update the function a couple of times as the URL structure began to vary… is there a more correct way to be doing this?
jake
> --
> You received this message because you are subscribed to the Google Groups "Etsy API V2" group.
> To post to this group, send email to
etsy-...@googlegroups.com.
> To unsubscribe from this group, send email to
etsy-api-v2...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/etsy-api-v2?hl=en.