Test page

https://code.jquery.com/jquery-1.10.2.js
https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/rollups/hmac-sha1.js
https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/components/enc-base64-min.js

function CalculateSig(stringToSign, privateKey){
//calculate the signature needed for authentication
var hash = CryptoJS.HmacSHA1(stringToSign, privateKey);
var base64 = hash.toString(CryptoJS.enc.Base64);
return encodeURIComponent(base64);
}

//set variables
var d = new Date;
var expiration = 3600; // 1 hour,
var unixtime = parseInt(d.getTime() / 1000);
var future_unixtime = unixtime + expiration;
var publicKey = “7314e341fd”;
var privateKey = “492b806909478ef”;
var method = “GET”;
var route = “forms/42/entries”;

stringToSign = publicKey + “:” + method + “:” + route + “:” + future_unixtime;
sig = CalculateSig(stringToSign, privateKey);
var url = ‘https://dbcm.org/gravityformsapi/’ + route + ‘?api_key=’ + publicKey + ‘&signature=’ + sig + ‘&expires=’ + future_unixtime;
$.get(url, function(data, textStatus)
{
//get the data from the api
if ( data.status != 200 || ( typeof( data ) != ‘object’ ) ) {
//http request failed
document.write( ‘There was an error attempting to access the API – ‘ + data.status + ‘: ‘ + data.response );
return;
}
response = data.response;
entries = response.entries; //entries is a collection of Entry objects
total_count = response.total_count;
});