Getting mixed content for a site with our PHP SDK
Make sure you've read the getting started guide first. Once that's done, you should have our package & authentication ready to go.
Getting mixed content data
Here's how to get the mixed content for a given site.
$ohDear->site($siteId)->mixedContent();
//alternatively you could do this
$ohDear->mixedContent($siteId);
Both methods above will return an array of OhDear\PhpSdk\Resources\MixedContentItem
instances.
You can get a few properties of a mixed content item.
// The name of the element that was detected as mixed content.
$mixedContentItem->elementName;
// The url of the detected mixed content.
$mixedContentItem->mixedContentUrl;
// The url where the mixed content was found.
$mixedContentItem->foundOnUrl;
Was this page helpful to you? Feel free to reach out via support@ohdear.app or on Twitter via @OhDearApp if you have any other questions. We'd love to help!