Module crowdin_api.api_resources.distributions.resource

Classes

class DistributionsResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)

Resource for Distributions.

Link to documentation: https://support.crowdin.com/developer/api/v2/#tag/Distributions

Ancestors

Methods

def add_distribution(self, name: str, projectId: Optional[int] = None, fileIds: Optional[Iterable[int]] = None, bundleIds: Optional[Iterable[int]] = None, exportMode: Optional[ExportMode] = None)

Add Distribution.

:param fileIds: Deprecated, use bundleIds instead. File-based projects only. :param bundleIds: Bundles ids. Get via List Bundles. Required for string-based projects. :param exportMode: Deprecated, omit it to use the API default behavior. File-based projects only.

Link to documentation: https://support.crowdin.com/developer/api/v2/#operation/api.projects.distributions.post

def delete_distribution(self, hash: str, projectId: Optional[int] = None)
def edit_distribution(self, hash: str, data: Iterable[DistributionPatchRequest], projectId: Optional[int] = None)
def get_distribution(self, hash: str, projectId: Optional[int] = None)
def get_distribution_release(self, hash: str, projectId: Optional[int] = None)
def get_distributions_path(self, projectId: int, hash: Optional[str] = None)
def list_distributions(self, projectId: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
def release_distribution(self, hash: str, projectId: Optional[int] = None)