+1
-1
src/Discovery/DiscoveryService.php
+1
-1
src/Discovery/DiscoveryService.php
+5
-5
src/Export/ExportService.php
+5
-5
src/Export/ExportService.php
···
24
24
*/
25
25
public function downloadRepo(string $did, ?string $since = null): RepoExport
26
26
{
27
-
$response = Atp::atproto->sync->getRepo($did, $since);
27
+
$response = Atp::public()->atproto->sync->getRepo($did, $since);
28
28
$carData = $response->body();
29
29
30
30
return new RepoExport(
···
92
92
$cursor = null;
93
93
94
94
do {
95
-
$response = Atp::atproto->sync->listBlobs(
95
+
$response = Atp::public()->atproto->sync->listBlobs(
96
96
did: $did,
97
97
since: $since,
98
98
limit: 500,
···
112
112
*/
113
113
public function downloadBlob(string $did, string $cid): string
114
114
{
115
-
$response = Atp::atproto->sync->getBlob($did, $cid);
115
+
$response = Atp::public()->atproto->sync->getBlob($did, $cid);
116
116
117
117
return $response->body();
118
118
}
···
122
122
*/
123
123
public function getLatestCommit(string $did): array
124
124
{
125
-
$commit = Atp::atproto->sync->getLatestCommit($did);
125
+
$commit = Atp::public()->atproto->sync->getLatestCommit($did);
126
126
127
127
return [
128
128
'cid' => $commit->cid,
···
135
135
*/
136
136
public function getRepoStatus(string $did): array
137
137
{
138
-
$status = Atp::atproto->sync->getRepoStatus($did);
138
+
$status = Atp::public()->atproto->sync->getRepoStatus($did);
139
139
140
140
return $status->toArray();
141
141
}