Skip to content
This repository was archived by the owner on Jul 27, 2020. It is now read-only.
This repository was archived by the owner on Jul 27, 2020. It is now read-only.

TypeError: ftApi.getPageList is not a function #137

@talyellin

Description

@talyellin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions