Interface IShareClient
Namespace: System.Dynamic.ExpandoObject
Syntax
public interface IShareClient
Methods
AggregateAsync(ShareAggregationRequest, CancellationToken)
Aggregate
Declaration
Task<ObjectAggregationResult> AggregateAsync(ShareAggregationRequest request, CancellationToken cancellationToken = default(CancellationToken))
Parameters
ShareAggregationRequest
request
Aggregation request |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<ObjectAggregationResult>
Share aggregation result |
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkException
Internal server error |
CreateAsync(ShareBaseCreateRequest, CancellationToken)
Create
Declaration
Task<BusinessProcess> CreateAsync(ShareBaseCreateRequest request, CancellationToken cancellationToken = default(CancellationToken))
Parameters
ShareBaseCreateRequest
request
Polymorphic create contract. Use either ShareBasicCreateRequest or ShareEmbedCreateRequest |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<BusinessProcess>
BusinessProcess |
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkConflictException
Version conflict |
PictureparkException
Internal server error |
PictureparkForbiddenException
Forbidden |
PermissionValidationException
No permission to share |
PictureparkNotFoundException
Entity not found |
ContentNotFoundException
Content could not be found |
CreateShareSelectionDownloadLinkAsync(String, ShareDownloadRequest, CancellationToken)
Download selection of a share
Declaration
Task<DownloadLink> CreateShareSelectionDownloadLinkAsync(string token, ShareDownloadRequest request, CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.String
token
Share token |
ShareDownloadRequest
request
Share download request |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<DownloadLink>
DownloadLink |
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkException
Internal server error |
DeleteManyAsync(ShareDeleteManyRequest, CancellationToken)
Delete multiple shares
Declaration
Task<BusinessProcess> DeleteManyAsync(ShareDeleteManyRequest request, CancellationToken cancellationToken = default(CancellationToken))
Parameters
ShareDeleteManyRequest
request
A delete many request containing the ids of the shares to delete. |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<BusinessProcess>
BusinessProcess |
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkException
Internal server error |
DownloadAsync(String, Nullable<Int32>, Nullable<Int32>, String, CancellationToken)
Download shared outputs
Declaration
Task<FileResponse> DownloadAsync(string token, int? width = null, int? height = null, string range = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.String
token
Share token |
System.Nullable<System.Int32>
width
Optional width in pixels to resize image |
System.Nullable<System.Int32>
height
Optional height in pixels to resize image |
System.String
range
The range of bytes to download (http range header): bytes={from}-{to} (e.g. bytes=0-100000) |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<FileResponse>
|
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkException
Internal server error |
DownloadSingleContentAsync(String, String, String, Nullable<Int32>, Nullable<Int32>, String, CancellationToken)
Download shared output
Declaration
Task<FileResponse> DownloadSingleContentAsync(string token, string contentId, string outputFormatId, int? width = null, int? height = null, string range = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.String
token
Share token |
System.String
contentId
The content id |
System.String
outputFormatId
The output format id |
System.Nullable<System.Int32>
width
Optional width in pixels to resize image |
System.Nullable<System.Int32>
height
Optional height in pixels to resize image |
System.String
range
The range of bytes to download (http range header): bytes={from}-{to} (e.g. bytes=0-100000) |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<FileResponse>
|
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkException
Internal server error |
DownloadWithContentIdAsync(String, String, Nullable<Int32>, Nullable<Int32>, String, CancellationToken)
Download shared outputs
Declaration
Task<FileResponse> DownloadWithContentIdAsync(string token, string contentId, int? width = null, int? height = null, string range = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.String
token
Share token |
System.String
contentId
The content id |
System.Nullable<System.Int32>
width
Optional width in pixels to resize image |
System.Nullable<System.Int32>
height
Optional height in pixels to resize image |
System.String
range
The range of bytes to download (http range header): bytes={from}-{to} (e.g. bytes=0-100000) |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<FileResponse>
|
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkException
Internal server error |
DownloadWithConversionPresetAsync(String, String, String, CancellationToken)
Download shared outputs
Declaration
Task<FileResponse> DownloadWithConversionPresetAsync(string token, string conversionPreset, string range = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.String
token
Share token |
System.String
conversionPreset
Image editing specification |
System.String
range
The range of bytes to download (http range header): bytes={from}-{to} (e.g. bytes=0-100000) |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<FileResponse>
|
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkException
Internal server error |
DownloadWithOutputFormatIdAsync(String, String, String, Nullable<Int32>, Nullable<Int32>, String, CancellationToken)
Download shared outputs
Declaration
Task<FileResponse> DownloadWithOutputFormatIdAsync(string token, string contentId, string outputFormatId, int? width = null, int? height = null, string range = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.String
token
Share token |
System.String
contentId
The content id |
System.String
outputFormatId
The output format id |
System.Nullable<System.Int32>
width
Optional width in pixels to resize image |
System.Nullable<System.Int32>
height
Optional height in pixels to resize image |
System.String
range
The range of bytes to download (http range header): bytes={from}-{to} (e.g. bytes=0-100000) |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<FileResponse>
|
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkException
Internal server error |
GetAsync(String, IEnumerable<ShareResolveBehavior>, Nullable<Int32>, CancellationToken)
Get
Declaration
Task<ShareDetail> GetAsync(string id, IEnumerable<ShareResolveBehavior> resolveBehaviors = null, int? contentResolveLimit = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.String
id
Share Id (not token, use GetShareJson to get share by token) |
System.Collections.Generic.IEnumerable<ShareResolveBehavior>
resolveBehaviors
List of enums that control which parts of the share are resolved and returned. |
System.Nullable<System.Int32>
contentResolveLimit
Optional limit the number of contents to resolve. Use a lower value for higher performance. If nothing is specified, everything is resolved. |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<ShareDetail>
Share detail |
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkConflictException
Version conflict |
PictureparkException
Internal server error |
PictureparkNotFoundException
Entity not found |
ShareNotFoundException
Share could not be found |
GetContentsInShareAsync(String, Nullable<Int32>, String, CancellationToken)
Get contents in share
Declaration
Task<ShareContentDetailResult> GetContentsInShareAsync(string id, int? limit = null, string pageToken = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.String
id
Share Id |
System.Nullable<System.Int32>
limit
Number of contents to return |
System.String
pageToken
PageToken to page over contents |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<ShareContentDetailResult>
ShareContentDetailResult |
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkException
Internal server error |
GetOutputsInShareAsync(String, CancellationToken)
Get shared outputs
Declaration
Task<ShareOutputsResult> GetOutputsInShareAsync(string token, CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.String
token
Share token |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<ShareOutputsResult>
List of OutputResolveResult |
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkException
Internal server error |
GetShareContentsAsync(String, String, Nullable<Int32>, String, CancellationToken)
Get share contents
Declaration
Task<ShareContentDetailResult> GetShareContentsAsync(string token, string lang = null, int? limit = null, string pageToken = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.String
token
Share token |
System.String
lang
Language code |
System.Nullable<System.Int32>
limit
Number of contents to return |
System.String
pageToken
PageToken to page over contents |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<ShareContentDetailResult>
ShareContentDetailResult |
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkException
Internal server error |
GetShareJsonAsync(String, String, IEnumerable<ShareResolveBehavior>, Nullable<Int32>, CancellationToken)
Get share json
Declaration
Task<ShareDetail> GetShareJsonAsync(string token, string lang = null, IEnumerable<ShareResolveBehavior> resolveBehaviors = null, int? contentResolveLimit = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.String
token
Share token |
System.String
lang
Language code |
System.Collections.Generic.IEnumerable<ShareResolveBehavior>
resolveBehaviors
List of enums that control which parts of the share are resolved and returned. |
System.Nullable<System.Int32>
contentResolveLimit
Optional limit the number of contents to resolve. Use a lower value for higher performance. If nothing is specified, everything is resolved. |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<ShareDetail>
ShareDetail |
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkException
Internal server error |
RevokeAsync(ShareRevokeManyRequest, CancellationToken)
Revokes multiple shares
Declaration
Task<BusinessProcess> RevokeAsync(ShareRevokeManyRequest request, CancellationToken cancellationToken = default(CancellationToken))
Parameters
ShareRevokeManyRequest
request
A revoke many request containing the ids of the shares to revoke. |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<BusinessProcess>
BusinessProcess |
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkException
Internal server error |
SearchAsync(ShareSearchRequest, CancellationToken)
Search
Declaration
Task<ShareSearchResult> SearchAsync(ShareSearchRequest request, CancellationToken cancellationToken = default(CancellationToken))
Parameters
ShareSearchRequest
request
Search request |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<ShareSearchResult>
Share search result |
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkException
Internal server error |
UpdateAsync(String, ShareBaseUpdateRequest, CancellationToken)
Update
Declaration
Task<BusinessProcess> UpdateAsync(string id, ShareBaseUpdateRequest request, CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.String
id
The share id. |
ShareBaseUpdateRequest
request
The share update request. |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<BusinessProcess>
BusinessProcess |
Exceptions
ApiException
A server side error occurred. |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkException
Internal server error |
PictureparkValidationException
Validation exception |
BusinessProcessLifeCycleNotHitException
A server side error occurred. |