public class DistributionsApi extends CrowdinApi
clientConfig, graphqlUrl, httpClient, url
Constructor and Description |
---|
DistributionsApi(Credentials credentials) |
DistributionsApi(Credentials credentials,
ClientConfig clientConfig) |
graphql, graphql
public DistributionsApi(Credentials credentials)
public DistributionsApi(Credentials credentials, ClientConfig clientConfig)
public ResponseList<Distribution> listDistributions(java.lang.Long projectId, java.lang.Integer limit, java.lang.Integer offset) throws HttpException, HttpBadRequestException
projectId
- project identifierlimit
- maximum number of items to retrieve (default 25)offset
- starting offset in the collection (default 0)HttpException
HttpBadRequestException
public ResponseList<Distribution> listDistributions(java.lang.Long projectId, Pagination options) throws HttpException, HttpBadRequestException
HttpException
HttpBadRequestException
public ResponseObject<Distribution> addDistribution(java.lang.Long projectId, AddDistributionRequest request) throws HttpException, HttpBadRequestException
projectId
- project identifierrequest
- request objectHttpException
HttpBadRequestException
public ResponseObject<Distribution> addDistributionStringsBased(java.lang.Long projectId, AddDistributionStringsBasedRequest request) throws HttpException, HttpBadRequestException
HttpException
HttpBadRequestException
public ResponseObject<Distribution> getDistribution(java.lang.Long projectId, java.lang.String hash) throws HttpException, HttpBadRequestException
projectId
- project identifierhash
- hashHttpException
HttpBadRequestException
public void deleteDistribution(java.lang.Long projectId, java.lang.String hash) throws HttpException, HttpBadRequestException
projectId
- project identifierhash
- hashHttpException
HttpBadRequestException
public ResponseObject<Distribution> editDistribution(java.lang.Long projectId, java.lang.String hash, java.util.List<PatchRequest> request) throws HttpException, HttpBadRequestException
projectId
- project identifierhash
- hashrequest
- request objectHttpException
HttpBadRequestException
public ResponseObject<DistributionRelease> getDistributionRelease(java.lang.Long projectId, java.lang.String hash) throws HttpException, HttpBadRequestException
projectId
- project identifierhash
- hashHttpException
HttpBadRequestException
public ResponseObject<DistributionStringsBasedRelease> getDistributionStringsBasedRelease(java.lang.Long projectId, java.lang.String hash) throws HttpException, HttpBadRequestException
HttpException
HttpBadRequestException
public ResponseObject<DistributionRelease> createDistributionRelease(java.lang.Long projectId, java.lang.String hash) throws HttpException, HttpBadRequestException
projectId
- project identifierhash
- hashHttpException
HttpBadRequestException
public ResponseObject<DistributionStringsBasedRelease> createDistributionStringsBasedRelease(java.lang.Long projectId, java.lang.String hash) throws HttpException, HttpBadRequestException
HttpException
HttpBadRequestException