Activity Feeds V3 is in closed alpha — do not use it in production (just yet).

Follows

Follow & Unfollow

$response = $this->feedsV3Client->unfollow(
    self::USER_FEED_TYPE . $this->testUserId,
    self::USER_FEED_TYPE . $this->testUserId2
);

Querying Follows

$response = $this->feedsV3Client->follow(
    new GeneratedModels\FollowRequest(
        source: self::USER_FEED_TYPE . $this->testUserId,
        target: self::USER_FEED_TYPE . $this->testUserId2
    )
);

Follow Requests

Some apps require the user’s approval for following them.

$response = $this->feedsV3Client->follow(
    new GeneratedModels\FollowRequest(
        source: self::USER_FEED_TYPE . $this->testUserId,
        target: self::USER_FEED_TYPE . $this->testUserId2
    )
);
© Getstream.io, Inc. All Rights Reserved.