Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

A WordPress php library for interacting with the WordPress.com mshots API.

Notifications You must be signed in to change notification settings

wp-api-libraries/wp-mshots-api

Repository files navigation

wp-mshots-api

A WordPress php library for interacting with the WordPress.com mshots API.

https://s.wordpress.com/mshots/v1/{{ DOMAIN }}?w= {{Width}}

Usage:

// Initate New MShots API.
$mshots = new MShotsAPI();

// Set Screenshot URL.
$screenshot_url = $mshots->get_screenshot('https://wp-api-libraries.com', 1024);

// Display Screenshot.
echo '<img src="' . $screenshot_url . '" />';

Releases

No releases published

Packages

No packages published