Skip to content

isActiveMember

Matthew Grist edited this page Nov 14, 2022 · 3 revisions

isActiveMember(id) - version 1.0.0

The isActiveMember method determines if a member has an active ACM subscription.

About

  • Input Parameters: (string|number|object) - id, A member object or an ACM ID as string/number.
  • Return Type: boolean

Example

const Chapter = require("acm-roster");

async function main() {
    // creating new client
    const client = new Chapter();
    try {
      // log in to chapters ACM account
      await client.login("acm-username", "acm-password");

      if (client.isActiveMember(12345678)) {
        ...
      }
    } catch (err) {
      throw err;
    }
}
Clone this wiki locally