You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mP.query is not a function. I see "Query" is exported in the lib. I've mP variable properly declared and assigned and could see the below objects for the mP Object. Please advise.
// Require the mPulse class
var mPulse = require("mpulse-query").mPulse;
// Access mPulse API for mpulse.soasta.com
var mP = new mPulse(conf.soasta.apiKey);
mP.query("summary", {date: "today"}, function(err, result) {
if (err) {
console.log(err.message);
return;
}
logger.info(result);
console.log(result);
});
The text was updated successfully, but these errors were encountered:
Looking at your sample code you've missed to invoke mPulse.connect() or mPulse. connectByApiToken() to generate an Auth Token and be allowed to request data from the service.
Please ensure that you have valid auth-credentials and try to use one of the connect functions to first get a token and then try to retrieve the API Data you wish to retrieve.
mP.query is not a function. I see "Query" is exported in the lib. I've mP variable properly declared and assigned and could see the below objects for the mP Object. Please advise.
mP Object:
Sample Invocation.
The text was updated successfully, but these errors were encountered: