@@ -228,8 +228,8 @@ private function addFile(string $domain, string $content): ?array
228
228
$ storageId = $ this ->addStorage ($ domain , $ content );
229
229
230
230
/**
231
- * @see https://support .crowdin.com/api/v2/#operation/api.projects.files.getMany (Crowdin API)
232
- * @see https://support .crowdin.com/enterprise/api/#operation/api.projects.files.getMany (Crowdin Enterprise API)
231
+ * @see https://developer .crowdin.com/api/v2/#operation/api.projects.files.getMany (Crowdin API)
232
+ * @see https://developer .crowdin.com/enterprise/api/v2 /#operation/api.projects.files.getMany (Crowdin Enterprise API)
233
233
*/
234
234
$ response = $ this ->client ->request ('POST ' , 'files ' , [
235
235
'json ' => [
@@ -252,8 +252,8 @@ private function updateFile(int $fileId, string $domain, string $content): ?arra
252
252
$ storageId = $ this ->addStorage ($ domain , $ content );
253
253
254
254
/**
255
- * @see https://support .crowdin.com/api/v2/#operation/api.projects.files.put (Crowdin API)
256
- * @see https://support .crowdin.com/enterprise/api/#operation/api.projects.files.put (Crowdin Enterprise API)
255
+ * @see https://developer .crowdin.com/api/v2/#operation/api.projects.files.put (Crowdin API)
256
+ * @see https://developer .crowdin.com/enterprise/api/v2 /#operation/api.projects.files.put (Crowdin Enterprise API)
257
257
*/
258
258
$ response = $ this ->client ->request ('PUT ' , 'files/ ' .$ fileId , [
259
259
'json ' => [
@@ -275,8 +275,8 @@ private function uploadTranslations(int $fileId, string $domain, string $content
275
275
$ storageId = $ this ->addStorage ($ domain , $ content );
276
276
277
277
/*
278
- * @see https://support .crowdin.com/api/v2/#operation/api.projects.translations.postOnLanguage (Crowdin API)
279
- * @see https://support .crowdin.com/enterprise/api/#operation/api.projects.translations.postOnLanguage (Crowdin Enterprise API)
278
+ * @see https://developer .crowdin.com/api/v2/#operation/api.projects.translations.postOnLanguage (Crowdin API)
279
+ * @see https://developer .crowdin.com/enterprise/api/v2 /#operation/api.projects.translations.postOnLanguage (Crowdin Enterprise API)
280
280
*/
281
281
return $ this ->client ->request ('POST ' , 'translations/ ' .str_replace ('_ ' , '- ' , $ locale ), [
282
282
'json ' => [
@@ -289,8 +289,8 @@ private function uploadTranslations(int $fileId, string $domain, string $content
289
289
private function exportProjectTranslations (string $ languageId , int $ fileId ): ResponseInterface
290
290
{
291
291
/*
292
- * @see https://support .crowdin.com/api/v2/#operation/api.projects.translations.exports.post (Crowdin API)
293
- * @see https://support .crowdin.com/enterprise/api/#operation/api.projects.translations.exports.post (Crowdin Enterprise API)
292
+ * @see https://developer .crowdin.com/api/v2/#operation/api.projects.translations.exports.post (Crowdin API)
293
+ * @see https://developer .crowdin.com/enterprise/api/v2 /#operation/api.projects.translations.exports.post (Crowdin Enterprise API)
294
294
*/
295
295
return $ this ->client ->request ('POST ' , 'translations/exports ' , [
296
296
'json ' => [
@@ -303,17 +303,17 @@ private function exportProjectTranslations(string $languageId, int $fileId): Res
303
303
private function downloadSourceFile (int $ fileId ): ResponseInterface
304
304
{
305
305
/*
306
- * @see https://support .crowdin.com/api/v2/#operation/api.projects.files.download.get (Crowdin API)
307
- * @see https://support .crowdin.com/enterprise/api/#operation/api.projects.files.download.get (Crowdin Enterprise API)
306
+ * @see https://developer .crowdin.com/api/v2/#operation/api.projects.files.download.get (Crowdin API)
307
+ * @see https://developer .crowdin.com/enterprise/api/v2 /#operation/api.projects.files.download.get (Crowdin Enterprise API)
308
308
*/
309
309
return $ this ->client ->request ('GET ' , sprintf ('files/%d/download ' , $ fileId ));
310
310
}
311
311
312
312
private function listStrings (int $ fileId , int $ limit , int $ offset ): array
313
313
{
314
314
/**
315
- * @see https://support .crowdin.com/api/v2/#operation/api.projects.strings.getMany (Crowdin API)
316
- * @see https://support .crowdin.com/enterprise/api/#operation/api.projects.strings.getMany (Crowdin Enterprise API)
315
+ * @see https://developer .crowdin.com/api/v2/#operation/api.projects.strings.getMany (Crowdin API)
316
+ * @see https://developer .crowdin.com/enterprise/api/v2 /#operation/api.projects.strings.getMany (Crowdin Enterprise API)
317
317
*/
318
318
$ response = $ this ->client ->request ('GET ' , 'strings ' , [
319
319
'query ' => [
@@ -335,17 +335,17 @@ private function listStrings(int $fileId, int $limit, int $offset): array
335
335
private function deleteString (int $ stringId ): ResponseInterface
336
336
{
337
337
/*
338
- * @see https://support .crowdin.com/api/v2/#operation/api.projects.strings.delete (Crowdin API)
339
- * @see https://support .crowdin.com/enterprise/api/#operation/api.projects.strings.delete (Crowdin Enterprise API)
338
+ * @see https://developer .crowdin.com/api/v2/#operation/api.projects.strings.delete (Crowdin API)
339
+ * @see https://developer .crowdin.com/enterprise/api/v2 #operation/api.projects.strings.delete (Crowdin Enterprise API)
340
340
*/
341
341
return $ this ->client ->request ('DELETE ' , 'strings/ ' .$ stringId );
342
342
}
343
343
344
344
private function addStorage (string $ domain , string $ content ): int
345
345
{
346
346
/**
347
- * @see https://support .crowdin.com/api/v2/#operation/api.storages.post (Crowdin API)
348
- * @see https://support .crowdin.com/enterprise/api/#operation/api.storages.post (Crowdin Enterprise API)
347
+ * @see https://developer .crowdin.com/api/v2/#operation/api.storages.post (Crowdin API)
348
+ * @see https://developer .crowdin.com/enterprise/api/v2 /#operation/api.storages.post (Crowdin Enterprise API)
349
349
*/
350
350
$ response = $ this ->client ->request ('POST ' , '../../storages ' , [
351
351
'headers ' => [
@@ -367,8 +367,8 @@ private function getFileList(): array
367
367
$ result = [];
368
368
369
369
/**
370
- * @see https://support .crowdin.com/api/v2/#operation/api.projects.files.getMany (Crowdin API)
371
- * @see https://support .crowdin.com/enterprise/api/#operation/api.projects.files.getMany (Crowdin Enterprise API)
370
+ * @see https://developer .crowdin.com/api/v2/#operation/api.projects.files.getMany (Crowdin API)
371
+ * @see https://developer .crowdin.com/enterprise/api/v2 /#operation/api.projects.files.getMany (Crowdin Enterprise API)
372
372
*/
373
373
$ response = $ this ->client ->request ('GET ' , 'files ' );
374
374
0 commit comments