Skip to content

README pagination example uses an undefined SDKClient identifier #214

Description

@dajiaohuang

Summary

The pagination example in both the English and Chinese README uses an undefined SDKClient identifier after creating the client as client.

Affected version

  • @larksuiteoapi/node-sdk 1.73.0
  • main at f54b49f3566c52b54c598194b7ed3015e3e24224

Location

  • README.md, pagination example near line 152
  • README.zh.md, pagination example near line 174

Both currently contain:

const listIterator = await SDKClient.contact.user.listWithIterator({

The surrounding quick-start code declares const client = new lark.Client(...); it never defines SDKClient.

Expected behavior

The example should call client.contact.user.listWithIterator(...), matching the instantiated client used by the surrounding documentation.

Actual behavior

Copying the example produces ReferenceError: SDKClient is not defined (or a TypeScript unresolved-name error).

Impact

The first documented pagination example cannot run as written, and the same error is duplicated across both maintained locales.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions