Hi all,
Working with the motion alert Webhook data.
The desired goal was to embed the snapshot image in an email notification
$email_body .= '<img src="'. $webhook['alertData']['imageUrl'] .'" alt="Snapshot" width="500" height="281" /><br>';
Which worked. Once. So now I am sending both the URL and embedding the image.
$email_body .= "Image URL: " . $webhook['alertData']['imageUrl'] . "<br>";
$email_body .= '<img src="'. $webhook['alertData']['imageUrl'] .'" alt="Snapshot" width="500" height="281" /><br>';
But when I click on the URL sent in the email, I am getting an error message.
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>OMITTED</RequestId>
<HostId>
BUNCHA STUFF
</HostId>
</Error>
Any thoughts? Is there somewhere I need to be storing a session ID or something? Or carrying over an ID?
Edit:
The access denied seems to only be happening when accessing the image from my MV71. The link seems to always work for my MV12 (the embed, not so much), but still testing this.
~Andrew Afonso~