We need a simple wordpress plugin creating which will collect some status data from a WebAPI for the logged in user and then output it on a page via shortcodes. The data for the logged in user should refresh every 30 seconds on the page if being viewed. Separate shortcodes should be available for the server list, uptime displays and a third to show overall status (i.e. All servers active).
The output should be similar to the attached images, with the rows being collapsed for a simplistic view and only showing the extended data when collapsed, or a hover over can be used if more appropriate.
The input post for the WebAPI will include Timestamp, SiteID, UserEmail and a Hash Signature, the SiteID and a SharedSecret will need to be configurable for the plugin. The Hash Signature is a Hash of UserEmail + "." + TimeStamp + "." + SiteID, the result then appended with . and the secret and hashed again, this is then used as the signature.
A c# example of how the MD5 Hash i created is:
public static string CalculateMD5Hash(string input)
var md5 = [login to view URL]();
var inputBytes = [login to view URL](input);
var hash = [login to view URL](inputBytes);
var sb = new StringBuilder();
for (var i = 0; i < [login to view URL]; i++)
[login to view URL](hash[i].ToString("X2"));
return [login to view URL]().ToLower();
An example of using the above to create the signature is :
public static string CalculateSignature(string UserEmail, string TimeStamp, string SiteID, string sharedSecret)
var str1 = UserEmail + "." + TimeStamp + "." + SiteID;
var result = [login to view URL](str1);
var str2 = result + "." + SharedSecret;
result = [login to view URL](str2);
The result returned from the WebAPI will be two json properties, one will be a list containing all of the data for the server status table, the second will be a single object containing the data for the collective uptimes as the bottom of the page.
Access to the WebAPI for the development will be available.
Hello. Wordpress development expert ready to help you with plugin development. I have more 400 good reviews and more 9 years of development experience behind, so all will be odne with best quality and timeframe. Fre Daha Fazla