Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs(sdk): show the PHP catalog info and product as nullable
Yudhi Armyndharis6b01994768d5
diff --git a/docs/18-sdk-design.md b/docs/18-sdk-design.mdindex 1aa59da1a..7a2ed17f2 100644--- a/docs/18-sdk-design.md+++ b/docs/18-sdk-design.md@@ -1009,9 +1009,9 @@ All payloads are associative arrays; all listed methods are synchronous and retu| Method | Signature | Description || ------------- | ------------------------------------------------------- | ------------------------------------------------------------- |-| `info` | `info(string $sessionId): array` | Get catalog info. |+| `info` | `info(string $sessionId): ?array` | Get catalog info, or null when the account has no catalog. || `products` | `products(string $sessionId, array $query = []): array` | List products (e.g. `['page' => 1, 'limit' => 20]`). |-| `product` | `product(string $sessionId, string $productId): array` | Get one product. |+| `product` | `product(string $sessionId, string $productId): ?array` | Get one product, or null when no product has that id. || `sendProduct` | `sendProduct(string $sessionId, array $body): array` | Send a product message (`chatId` + `productId`). **OPERATOR** |#### `status` _(Stories)_