Module crowdin_api.api_resources.labels.resource
Classes
class LabelsResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)
-
Resource for Labels.
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Labels
Ancestors
Methods
def add_label(self, title: str, projectId: Optional[int] = None)
-
Add Label.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.labels.post
def assign_label_to_screenshots(self, label_id: int, screenshot_ids: Iterable[int], project_id: Optional[int] = None)
-
Assign Label to Screenshots
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.labels.screenshots.post https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.labels.screenshots.post
def assign_label_to_strings(self, labelId: int, stringIds: Iterable[int], projectId: Optional[int] = None)
-
Assign Label to Strings.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.labels.strings.post
def delete_label(self, labelId: int, projectId: Optional[int] = None)
-
Delete Label.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.labels.delete
def edit_label(self, labelId: int, data: Iterable[LabelsPatchRequest], projectId: Optional[int] = None)
-
Edit Label.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.labels.patch
def get_label(self, labelId: int, projectId: Optional[int] = None)
-
Get Label.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.labels.get
def get_labels_path(self, projectId: int, labelId: Optional[int] = None)
def get_screenshots_path(self, project_id: int, label_id: int)
def list_labels(self, projectId: Optional[int] = None, orderBy: Optional[Sorting] = None, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
-
List Labels.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.labels.getMany
def unassign_label_from_screenshots(self, label_id: int, screenshot_ids: Iterable[int], project_id: Optional[int] = None)
-
Unassign Label from Screenshots
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.labels.screenshots.deleteMany https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.labels.screenshots.deleteMany
def unassign_label_from_strings(self, labelId: int, stringIds: Iterable[int], projectId: Optional[int] = None)
-
Unassign Label from Strings.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.projects.labels.strings.deleteMany