open-wa
DocsAPI reference

Namespaced client

How BaseNamespacedClient builds namespace objects from aliases.

Namespaced client

Namespaced aliases group related methods. For example, groups.create resolves to createGroup, and messages.sendText resolves to sendText. Both names identify the same registered method.

The compact reference starts with flat method names. Turn on Namespaced beside Expand parameters to browse by namespace. Permanent method links stay the same.

The HTTP API registers both forms, such as /api/createGroup and /api/groups/create. Its examples follow the switch. The Node.js client and in-process SDK use flat calls such as client.createGroup(...); they do not expose client.groups.create(...), so their examples keep the callable form.

BaseNamespacedClient is a generated base class for client implementations. It extends BaseClient and builds namespace objects from the registered aliases. It is not the class returned by SocketClient.connect().

See the full alias map on Aliases.

Was this helpful?

Your answer includes the page path and docs version.