Laravel AT Protocol Client (alpha & unstable)
1<?php
2
3namespace SocialDept\AtpClient\Client\Requests\Bsky;
4
5use SocialDept\AtpClient\Attributes\PublicEndpoint;
6use SocialDept\AtpClient\Client\Requests\Request;
7use SocialDept\AtpClient\Data\Responses\Bsky\Labeler\GetServicesResponse;
8use SocialDept\AtpClient\Enums\Nsid\BskyLabeler;
9
10class LabelerRequestClient extends Request
11{
12 /**
13 * Get labeler services
14 *
15 * @see https://docs.bsky.app/docs/api/app-bsky-labeler-get-services
16 */
17 #[PublicEndpoint]
18 public function getServices(array $dids, bool $detailed = false): GetServicesResponse
19 {
20 $response = $this->atp->client->get(
21 endpoint: BskyLabeler::GetServices,
22 params: compact('dids', 'detailed')
23 );
24
25 return GetServicesResponse::fromArray($response->json(), $detailed);
26 }
27}