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
{{ message }}
This repository was archived by the owner on Jul 27, 2020. It is now read-only.
I'm not sure what I'm doing wrong but I keep getting an error using the example code:
var FtApi = require('ft-api-client'),
ftApi;
// Create a new Api Client from your API Key
ftApi = new FtApi('mykeyhere');
// And get the page list
ftApi.getPageList(function (errors, pageList) {
if (errors) {
console.log('Request error occurred:', errors);
} else {
console.log('Page list retrieved:', pageList);
}
});
Error:
ftApi.getPageList(function (errors, pageList) {
^
TypeError: ftApi.getPageList is not a function
at Object.<anonymous> (/testing-ft/index.js:8:7)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:475:10)
at startup (node.js:117:18)
at node.js:951:3
I'm not sure what I'm doing wrong but I keep getting an error using the example code:
Error: