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