Skip to content

Get "About" Contact

Gets the Contact's "about" (status) info.

Usage

The Contact facade's getAbout method may be used to retrieve the "about" (status) information for a specific contact.

php
use NjoguAmos\Waha\Facades\Contact;

/** @var \Saloon\Http\Response $response */
$response = Contact::getAbout(
    contactId: '[email protected]',
    session: 'default'
);

Response

The response returned by the getAbout method is an instance of Saloon\Http\Response. You may use the json method to retrieve the response as an array:

php
/** @var \Saloon\Http\Response $response */

$response->status(); // 200
$response->json();   // ['about' => 'Hi, I use WhatsApp!']

Engines

WEBJSWPPNOWEBGOWS

References

Released under the MIT License.