Laravel AT Protocol Client (alpha & unstable)
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

Return Record from ActorRequestClient getProfile

+6 -2
+6 -2
src/Client/Requests/Bsky/ActorRequestClient.php
··· 4 4 5 5 use SocialDept\AtpClient\Attributes\PublicEndpoint; 6 6 use SocialDept\AtpClient\Client\Requests\Request; 7 + use SocialDept\AtpClient\Data\Record; 7 8 use SocialDept\AtpClient\Data\Responses\Bsky\Actor\GetProfilesResponse; 8 9 use SocialDept\AtpClient\Data\Responses\Bsky\Actor\GetSuggestionsResponse; 9 10 use SocialDept\AtpClient\Data\Responses\Bsky\Actor\SearchActorsResponse; ··· 19 20 * @see https://docs.bsky.app/docs/api/app-bsky-actor-get-profile 20 21 */ 21 22 #[PublicEndpoint] 22 - public function getProfile(string $actor): ProfileViewDetailed 23 + public function getProfile(string $actor): Record 23 24 { 24 25 $response = $this->atp->client->get( 25 26 endpoint: BskyActor::GetProfile, 26 27 params: compact('actor') 27 28 ); 28 29 29 - return ProfileViewDetailed::fromArray($response->json()); 30 + return Record::fromArray( 31 + data: $response->toArray(), 32 + transformer: fn($value) => ProfileViewDetailed::fromArray($response->json('value')) 33 + ); 30 34 } 31 35 32 36 /**