Module crowdin_api.api_resources.screenshots.resource
Classes
class ScreenshotsResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Screenshots.
Screenshots provide translators with additional context for the source strings. Screenshot tags allow specifying which source strings are displayed on each screenshot.
Use API to manage screenshots and their tags.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Screenshots
Ancestors
Methods
def add_screenshot(self, storageId: int, name: str, projectId: Optional[int] = None, autoTag: Optional[bool] = None, fileId: Optional[int] = None, branchId: Optional[int] = None, directoryId: Optional[int] = None, labelIds: Optional[Iterable[int]] = None)
-
Add Screenshot.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.post
def add_tag(self, screenshotId: int, data: Iterable[AddTagRequest], projectId: Optional[int] = None)
-
Add Tag.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.tags.post
def auto_tag(self, screenshotId: int, autoTag: bool, projectId: Optional[int] = None)
-
Auto Tag.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.tags.putMany
-
Clear Tags.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.tags.deleteMany
def delete_screenshot(self, screenshotId: int, projectId: Optional[int] = None)
-
Delete Screenshot.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.delete
def delete_tag(self, screenshotId: int, tagId: int, projectId: Optional[int] = None)
-
Delete Tag.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.tags.delete
def edit_screenshot(self, screenshotId: int, data: Iterable[ScreenshotPatchRequest], projectId: Optional[int] = None)
-
Edit Screenshot.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.patch
def edit_tag(self, screenshotId: int, tagId: int, data: Iterable[TagPatchRequest], projectId: Optional[int] = None)
-
Edit Tag.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.tags.patch
def get_screenshot(self, screenshotId: int, projectId: Optional[int] = None)
-
Get Screenshot.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.get
def get_screenshots_path(self, projectId: int, screenshotId: Optional[int] = None)
def get_tag(self, screenshotId: int, tagId: int, projectId: Optional[int] = None)
-
Get Tag.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.tags.get
def list_screenshots(self, orderBy: Optional[Sorting] = None, projectId: Optional[int] = None, stringId: Optional[int] = None, stringIds: Optional[Iterable[int]] = None, labelIds: Optional[Iterable[int]] = None, excludeLabelIds: Optional[Iterable[int]] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Screenshots.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.getMany
-
List Tags.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.tags.getMany
-
Replace Tags.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.tags.putMany
def update_screenshot(self, screenshotId: int, storageId: int, name: str, projectId: Optional[int] = None)
-
Update Screenshot.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.screenshots.put