Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(sdk): mark the PHP contact block calls as OPERATOR

Yudhi Armyndharise442de89d352
diff --git a/sdk/php/src/Resources/ContactsResource.php b/sdk/php/src/Resources/ContactsResource.php
index c07453ce7..f5056f91e 100644
--- a/sdk/php/src/Resources/ContactsResource.php
+++ b/sdk/php/src/Resources/ContactsResource.php
@@ -72,7 +72,11 @@ class ContactsResource
return $this->http->request('GET', "/api/sessions/{$this->http->encodeSegment($sessionId)}/contacts/{$this->http->encodeSegment($contactId)}/phone");
}
- /** @return array<string,mixed> */
+ /**
+ * Block a contact. Requires an OPERATOR key.
+ *
+ * @return array<string,mixed>
+ */
public function block(string $sessionId, string $contactId): array
{
return $this->http->request('POST', "/api/sessions/{$this->http->encodeSegment($sessionId)}/contacts/{$this->http->encodeSegment($contactId)}/block");
@@ -99,7 +103,11 @@ class ContactsResource
return $this->http->request('DELETE', "/api/sessions/{$this->http->encodeSegment($sessionId)}/contacts/{$this->http->encodeSegment($contactId)}") ?? [];
}
- /** @return array<string,mixed> */
+ /**
+ * Unblock a contact. Requires an OPERATOR key.
+ *
+ * @return array<string,mixed>
+ */
public function unblock(string $sessionId, string $contactId): array
{
return $this->http->request('DELETE', "/api/sessions/{$this->http->encodeSegment($sessionId)}/contacts/{$this->http->encodeSegment($contactId)}/block");