CoreTweet  2.0.0-beta.2
Yet another .NET Twitter Library
Public Member Functions | Public Attributes | List of all members
CoreTweet.Rest.Media Class Reference

Provides a set of methods for the wrapper of POST media. More...

Public Member Functions

Task< MediaUploadResultUploadAsync (IDictionary< string, object > parameters, CancellationToken cancellationToken=default(CancellationToken), IProgress< UploadProgressInfo > progress=null)
 
Task< MediaUploadResultUploadAsync (object parameters, CancellationToken cancellationToken=default(CancellationToken), IProgress< UploadProgressInfo > progress=null)
 
Task< MediaUploadResultUploadAsync (Stream media, IEnumerable< long > additional_owners=null, CancellationToken cancellationToken=default(CancellationToken), IProgress< UploadProgressInfo > progress=null)
 
Task< MediaUploadResultUploadAsync (IEnumerable< byte > media, IEnumerable< long > additional_owners=null, CancellationToken cancellationToken=default(CancellationToken), IProgress< UploadProgressInfo > progress=null)
 
Task< MediaUploadResultUploadAsync (FileInfo media, IEnumerable< long > additional_owners=null, CancellationToken cancellationToken=default(CancellationToken), IProgress< UploadProgressInfo > progress=null)
 
Task UploadAppendCommandAsync (IDictionary< string, object > parameters, CancellationToken cancellationToken=default(CancellationToken), IProgress< UploadProgressInfo > progress=null)
 
Task UploadAppendCommandAsync (object parameters, CancellationToken cancellationToken=default(CancellationToken), IProgress< UploadProgressInfo > progress=null)
 
Task UploadAppendCommandAsync (long media_id, int segment_index, Stream media, CancellationToken cancellationToken=default(CancellationToken), IProgress< UploadProgressInfo > progress=null)
 
Task UploadAppendCommandAsync (long media_id, int segment_index, IEnumerable< byte > media, CancellationToken cancellationToken=default(CancellationToken), IProgress< UploadProgressInfo > progress=null)
 
Task UploadAppendCommandAsync (long media_id, int segment_index, FileInfo media, CancellationToken cancellationToken=default(CancellationToken), IProgress< UploadProgressInfo > progress=null)
 
Task< MediaUploadResultUploadChunkedAsync (Stream media, long totalBytes, UploadMediaType mediaType, params Expression< Func< string, object >>[] parameters)
 
Task< MediaUploadResultUploadChunkedAsync (Stream media, UploadMediaType mediaType, params Expression< Func< string, object >>[] parameters)
 
Task< MediaUploadResultUploadChunkedAsync (Stream media, long totalBytes, UploadMediaType mediaType, IDictionary< string, object > parameters, CancellationToken cancellationToken=default(CancellationToken), IProgress< UploadChunkedProgressInfo > progress=null)
 
Task< MediaUploadResultUploadChunkedAsync (Stream media, long totalBytes, UploadMediaType mediaType, object parameters, CancellationToken cancellationToken=default(CancellationToken), IProgress< UploadChunkedProgressInfo > progress=null)
 
Task< MediaUploadResultUploadChunkedAsync (Stream media, long totalBytes, UploadMediaType mediaType, string media_category=null, IEnumerable< long > additional_owners=null, CancellationToken cancellationToken=default(CancellationToken), IProgress< UploadChunkedProgressInfo > progress=null)
 Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card as an asynchronous operation. More...
 
Task< MediaUploadResultUploadChunkedAsync (Stream media, UploadMediaType mediaType, IDictionary< string, object > parameters, CancellationToken cancellationToken=default(CancellationToken), IProgress< UploadChunkedProgressInfo > progress=null)
 
Task< MediaUploadResultUploadChunkedAsync (Stream media, UploadMediaType mediaType, object parameters, CancellationToken cancellationToken=default(CancellationToken), IProgress< UploadChunkedProgressInfo > progress=null)
 
Task< MediaUploadResultUploadChunkedAsync (Stream media, UploadMediaType mediaType, string media_category=null, IEnumerable< long > additional_owners=null, CancellationToken cancellationToken=default(CancellationToken), IProgress< UploadChunkedProgressInfo > progress=null)
 Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card as an asynchronous operation. More...
 
Task< MediaUploadResultUploadChunkedWithRetryAsync (Stream media, long totalBytes, UploadMediaType mediaType, int retryCount, int retryDelayInMilliseconds, params Expression< Func< string, object >>[] parameters)
 
Task< MediaUploadResultUploadChunkedWithRetryAsync (Stream media, UploadMediaType mediaType, int retryCount, int retryDelayInMilliseconds, params Expression< Func< string, object >>[] parameters)
 
Task< MediaUploadResultUploadChunkedWithRetryAsync (Stream media, long totalBytes, UploadMediaType mediaType, int retryCount, int retryDelayInMilliseconds, IDictionary< string, object > parameters, CancellationToken cancellationToken=default(CancellationToken), IProgress< UploadChunkedProgressInfo > progress=null)
 
Task< MediaUploadResultUploadChunkedWithRetryAsync (Stream media, long totalBytes, UploadMediaType mediaType, int retryCount, int retryDelayInMilliseconds, object parameters, CancellationToken cancellationToken=default(CancellationToken), IProgress< UploadChunkedProgressInfo > progress=null)
 
Task< MediaUploadResultUploadChunkedWithRetryAsync (Stream media, long totalBytes, UploadMediaType mediaType, int retryCount, int retryDelayInMilliseconds, string media_category=null, IEnumerable< long > additional_owners=null, CancellationToken cancellationToken=default(CancellationToken), IProgress< UploadChunkedProgressInfo > progress=null)
 Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card as an asynchronous operation. More...
 
Task< MediaUploadResultUploadChunkedWithRetryAsync (Stream media, UploadMediaType mediaType, int retryCount, int retryDelayInMilliseconds, IDictionary< string, object > parameters, CancellationToken cancellationToken=default(CancellationToken), IProgress< UploadChunkedProgressInfo > progress=null)
 
Task< MediaUploadResultUploadChunkedWithRetryAsync (Stream media, UploadMediaType mediaType, object parameters, int retryCount, int retryDelayInMilliseconds, CancellationToken cancellationToken=default(CancellationToken), IProgress< UploadChunkedProgressInfo > progress=null)
 
Task< MediaUploadResultUploadChunkedWithRetryAsync (Stream media, UploadMediaType mediaType, int retryCount, int retryDelayInMilliseconds, string media_category=null, IEnumerable< long > additional_owners=null, CancellationToken cancellationToken=default(CancellationToken), IProgress< UploadChunkedProgressInfo > progress=null)
 Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card as an asynchronous operation. More...
 
MediaUploadResult UploadChunked (Stream media, long totalBytes, UploadMediaType mediaType, params Expression< Func< string, object >>[] parameters)
 
MediaUploadResult UploadChunked (Stream media, long totalBytes, UploadMediaType mediaType, IDictionary< string, object > parameters)
 
MediaUploadResult UploadChunked (Stream media, long totalBytes, UploadMediaType mediaType, object parameters)
 
MediaUploadResult UploadChunked (Stream media, long totalBytes, UploadMediaType mediaType, string media_category=null, IEnumerable< long > additional_owners=null)
 Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card. More...
 
MediaUploadResult UploadChunked (Stream media, UploadMediaType mediaType, params Expression< Func< string, object >>[] parameters)
 
MediaUploadResult UploadChunked (Stream media, UploadMediaType mediaType, IDictionary< string, object > parameters)
 
MediaUploadResult UploadChunked (Stream media, UploadMediaType mediaType, object parameters)
 
MediaUploadResult UploadChunked (Stream media, UploadMediaType mediaType, string media_category=null, IEnumerable< long > additional_owners=null)
 Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card. More...
 
MediaUploadResult Upload (params Expression< Func< string, object >>[] parameters)
 
MediaUploadResult Upload (IDictionary< string, object > parameters)
 
MediaUploadResult Upload (object parameters)
 
MediaUploadResult Upload (Stream media, IEnumerable< long > additional_owners=null)
 
MediaUploadResult Upload (IEnumerable< byte > media, IEnumerable< long > additional_owners=null)
 
MediaUploadResult Upload (FileInfo media, IEnumerable< long > additional_owners=null)
 
MediaUploadResult Upload (string media_data, IEnumerable< long > additional_owners=null)
 
Task< MediaUploadResultUploadAsync (params Expression< Func< string, object >>[] parameters)
 
UploadInitCommandResult UploadInitCommand (params Expression< Func< string, object >>[] parameters)
 
UploadInitCommandResult UploadInitCommand (IDictionary< string, object > parameters)
 
UploadInitCommandResult UploadInitCommand (object parameters)
 
UploadInitCommandResult UploadInitCommand (int total_bytes, string media_type, IEnumerable< long > additional_owners=null, string media_category=null, bool? shared=null)
 
UploadInitCommandResult UploadInitCommand (int total_bytes, UploadMediaType media_type, IEnumerable< long > additional_owners=null, string media_category=null, bool? shared=null)
 
Task< UploadInitCommandResultUploadInitCommandAsync (params Expression< Func< string, object >>[] parameters)
 
Task< UploadInitCommandResultUploadInitCommandAsync (IDictionary< string, object > parameters, CancellationToken cancellationToken=default(CancellationToken))
 
Task< UploadInitCommandResultUploadInitCommandAsync (object parameters, CancellationToken cancellationToken=default(CancellationToken))
 
Task< UploadInitCommandResultUploadInitCommandAsync (int total_bytes, string media_type, IEnumerable< long > additional_owners=null, string media_category=null, bool? shared=null, CancellationToken cancellationToken=default(CancellationToken))
 
Task< UploadInitCommandResultUploadInitCommandAsync (int total_bytes, UploadMediaType media_type, IEnumerable< long > additional_owners=null, string media_category=null, bool? shared=null, CancellationToken cancellationToken=default(CancellationToken))
 
void UploadAppendCommand (params Expression< Func< string, object >>[] parameters)
 
void UploadAppendCommand (IDictionary< string, object > parameters)
 
void UploadAppendCommand (object parameters)
 
void UploadAppendCommand (long media_id, int segment_index, Stream media)
 
void UploadAppendCommand (long media_id, int segment_index, IEnumerable< byte > media)
 
void UploadAppendCommand (long media_id, int segment_index, FileInfo media)
 
void UploadAppendCommand (long media_id, int segment_index, string media_data)
 
Task UploadAppendCommandAsync (params Expression< Func< string, object >>[] parameters)
 
UploadFinalizeCommandResult UploadFinalizeCommand (params Expression< Func< string, object >>[] parameters)
 
UploadFinalizeCommandResult UploadFinalizeCommand (IDictionary< string, object > parameters)
 
UploadFinalizeCommandResult UploadFinalizeCommand (object parameters)
 
UploadFinalizeCommandResult UploadFinalizeCommand (long media_id)
 
Task< UploadFinalizeCommandResultUploadFinalizeCommandAsync (params Expression< Func< string, object >>[] parameters)
 
Task< UploadFinalizeCommandResultUploadFinalizeCommandAsync (IDictionary< string, object > parameters, CancellationToken cancellationToken=default(CancellationToken))
 
Task< UploadFinalizeCommandResultUploadFinalizeCommandAsync (object parameters, CancellationToken cancellationToken=default(CancellationToken))
 
Task< UploadFinalizeCommandResultUploadFinalizeCommandAsync (long media_id, CancellationToken cancellationToken=default(CancellationToken))
 
UploadFinalizeCommandResult UploadStatusCommand (params Expression< Func< string, object >>[] parameters)
 
UploadFinalizeCommandResult UploadStatusCommand (IDictionary< string, object > parameters)
 
UploadFinalizeCommandResult UploadStatusCommand (object parameters)
 
UploadFinalizeCommandResult UploadStatusCommand (long media_id)
 
Task< UploadFinalizeCommandResultUploadStatusCommandAsync (params Expression< Func< string, object >>[] parameters)
 
Task< UploadFinalizeCommandResultUploadStatusCommandAsync (IDictionary< string, object > parameters, CancellationToken cancellationToken=default(CancellationToken))
 
Task< UploadFinalizeCommandResultUploadStatusCommandAsync (object parameters, CancellationToken cancellationToken=default(CancellationToken))
 
Task< UploadFinalizeCommandResultUploadStatusCommandAsync (long media_id, CancellationToken cancellationToken=default(CancellationToken))
 

Public Attributes

MediaMetadata Metadata => new MediaMetadata(this.Tokens)
 Gets the wrapper of media/metadata. More...
 

Detailed Description

Provides a set of methods for the wrapper of POST media.

Member Function Documentation

◆ Upload() [1/7]

MediaUploadResult CoreTweet.Rest.Media.Upload ( FileInfo  media,
IEnumerable< long >  additional_owners = null 
)
inline

Upload media (images) to Twitter for use in a Tweet or Twitter-hosted Card.

Parameters
mediaany one is required.
additional_ownersoptional.
Returns
The result for the uploaded media.

◆ Upload() [2/7]

MediaUploadResult CoreTweet.Rest.Media.Upload ( IDictionary< string, object >  parameters)
inline

Upload media (images) to Twitter for use in a Tweet or Twitter-hosted Card.

Available parameters:

- Stream media (any one is required)

- IEnumerable<byte> media (any one is required)

- FileInfo media (any one is required)

- string media_data (any one is required)

- IEnumerable<long> additional_owners (optional)

Parameters
parametersThe parameters.
Returns
The result for the uploaded media.

◆ Upload() [3/7]

MediaUploadResult CoreTweet.Rest.Media.Upload ( IEnumerable< byte >  media,
IEnumerable< long >  additional_owners = null 
)
inline

Upload media (images) to Twitter for use in a Tweet or Twitter-hosted Card.

Parameters
mediaany one is required.
additional_ownersoptional.
Returns
The result for the uploaded media.

◆ Upload() [4/7]

MediaUploadResult CoreTweet.Rest.Media.Upload ( object  parameters)
inline

Upload media (images) to Twitter for use in a Tweet or Twitter-hosted Card.

Available parameters:

- Stream media (any one is required)

- IEnumerable<byte> media (any one is required)

- FileInfo media (any one is required)

- string media_data (any one is required)

- IEnumerable<long> additional_owners (optional)

Parameters
parametersThe parameters.
Returns
The result for the uploaded media.

◆ Upload() [5/7]

MediaUploadResult CoreTweet.Rest.Media.Upload ( params Expression< Func< string, object >>[]  parameters)
inline

Upload media (images) to Twitter for use in a Tweet or Twitter-hosted Card.

Available parameters:

- Stream media (any one is required)

- IEnumerable<byte> media (any one is required)

- FileInfo media (any one is required)

- string media_data (any one is required)

- IEnumerable<long> additional_owners (optional)

Parameters
parametersThe parameters.
Returns
The result for the uploaded media.

◆ Upload() [6/7]

MediaUploadResult CoreTweet.Rest.Media.Upload ( Stream  media,
IEnumerable< long >  additional_owners = null 
)
inline

Upload media (images) to Twitter for use in a Tweet or Twitter-hosted Card.

Parameters
mediaany one is required.
additional_ownersoptional.
Returns
The result for the uploaded media.

◆ Upload() [7/7]

MediaUploadResult CoreTweet.Rest.Media.Upload ( string  media_data,
IEnumerable< long >  additional_owners = null 
)
inline

Upload media (images) to Twitter for use in a Tweet or Twitter-hosted Card.

Parameters
media_dataany one is required.
additional_ownersoptional.
Returns
The result for the uploaded media.

◆ UploadAppendCommand() [1/7]

void CoreTweet.Rest.Media.UploadAppendCommand ( IDictionary< string, object >  parameters)
inline

Upload(s) of chunked data.

Available parameters:

- long media_id (required)

- int segment_index (required)

- Stream media (any one is required)

- IEnumerable<byte> media (any one is required)

- FileInfo media (any one is required)

- string media_data (any one is required)

Parameters
parametersThe parameters.
Returns

◆ UploadAppendCommand() [2/7]

void CoreTweet.Rest.Media.UploadAppendCommand ( long  media_id,
int  segment_index,
FileInfo  media 
)
inline

Upload(s) of chunked data.

Parameters
media_idrequired.
segment_indexrequired.
mediaany one is required.
Returns

◆ UploadAppendCommand() [3/7]

void CoreTweet.Rest.Media.UploadAppendCommand ( long  media_id,
int  segment_index,
IEnumerable< byte >  media 
)
inline

Upload(s) of chunked data.

Parameters
media_idrequired.
segment_indexrequired.
mediaany one is required.
Returns

◆ UploadAppendCommand() [4/7]

void CoreTweet.Rest.Media.UploadAppendCommand ( long  media_id,
int  segment_index,
Stream  media 
)
inline

Upload(s) of chunked data.

Parameters
media_idrequired.
segment_indexrequired.
mediaany one is required.
Returns

◆ UploadAppendCommand() [5/7]

void CoreTweet.Rest.Media.UploadAppendCommand ( long  media_id,
int  segment_index,
string  media_data 
)
inline

Upload(s) of chunked data.

Parameters
media_idrequired.
segment_indexrequired.
media_dataany one is required.
Returns

◆ UploadAppendCommand() [6/7]

void CoreTweet.Rest.Media.UploadAppendCommand ( object  parameters)
inline

Upload(s) of chunked data.

Available parameters:

- long media_id (required)

- int segment_index (required)

- Stream media (any one is required)

- IEnumerable<byte> media (any one is required)

- FileInfo media (any one is required)

- string media_data (any one is required)

Parameters
parametersThe parameters.
Returns

◆ UploadAppendCommand() [7/7]

void CoreTweet.Rest.Media.UploadAppendCommand ( params Expression< Func< string, object >>[]  parameters)
inline

Upload(s) of chunked data.

Available parameters:

- long media_id (required)

- int segment_index (required)

- Stream media (any one is required)

- IEnumerable<byte> media (any one is required)

- FileInfo media (any one is required)

- string media_data (any one is required)

Parameters
parametersThe parameters.
Returns

◆ UploadAppendCommandAsync() [1/6]

Task CoreTweet.Rest.Media.UploadAppendCommandAsync ( IDictionary< string, object >  parameters,
CancellationToken  cancellationToken = default(CancellationToken),
IProgress< UploadProgressInfo progress = null 
)
inline

Upload(s) of chunked data.

Available parameters:

- long media_id (required)

- int segment_index (required)

- Stream media (any one is required)

- IEnumerable<byte> media (any one is required)

- FileInfo media (any one is required)

- string media_data (any one is required)

Parameters
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns

◆ UploadAppendCommandAsync() [2/6]

Task CoreTweet.Rest.Media.UploadAppendCommandAsync ( long  media_id,
int  segment_index,
FileInfo  media,
CancellationToken  cancellationToken = default(CancellationToken),
IProgress< UploadProgressInfo progress = null 
)
inline

Upload(s) of chunked data.

Parameters
media_idrequired.
segment_indexrequired.
mediaany one is required.
cancellationTokenThe cancellation token.
Returns

◆ UploadAppendCommandAsync() [3/6]

Task CoreTweet.Rest.Media.UploadAppendCommandAsync ( long  media_id,
int  segment_index,
IEnumerable< byte >  media,
CancellationToken  cancellationToken = default(CancellationToken),
IProgress< UploadProgressInfo progress = null 
)
inline

Upload(s) of chunked data.

Parameters
media_idrequired.
segment_indexrequired.
mediaany one is required.
cancellationTokenThe cancellation token.
Returns

◆ UploadAppendCommandAsync() [4/6]

Task CoreTweet.Rest.Media.UploadAppendCommandAsync ( long  media_id,
int  segment_index,
Stream  media,
CancellationToken  cancellationToken = default(CancellationToken),
IProgress< UploadProgressInfo progress = null 
)
inline

Upload(s) of chunked data.

Parameters
media_idrequired.
segment_indexrequired.
mediaany one is required.
cancellationTokenThe cancellation token.
Returns

◆ UploadAppendCommandAsync() [5/6]

Task CoreTweet.Rest.Media.UploadAppendCommandAsync ( object  parameters,
CancellationToken  cancellationToken = default(CancellationToken),
IProgress< UploadProgressInfo progress = null 
)
inline

Upload(s) of chunked data.

Available parameters:

- long media_id (required)

- int segment_index (required)

- Stream media (any one is required)

- IEnumerable<byte> media (any one is required)

- FileInfo media (any one is required)

- string media_data (any one is required)

Parameters
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns

◆ UploadAppendCommandAsync() [6/6]

Task CoreTweet.Rest.Media.UploadAppendCommandAsync ( params Expression< Func< string, object >>[]  parameters)
inline

Upload(s) of chunked data.

Available parameters:

- long media_id (required)

- int segment_index (required)

- Stream media (any one is required)

- IEnumerable<byte> media (any one is required)

- FileInfo media (any one is required)

- string media_data (any one is required)

Parameters
parametersThe parameters.
Returns

◆ UploadAsync() [1/6]

Task<MediaUploadResult> CoreTweet.Rest.Media.UploadAsync ( FileInfo  media,
IEnumerable< long >  additional_owners = null,
CancellationToken  cancellationToken = default(CancellationToken),
IProgress< UploadProgressInfo progress = null 
)
inline

Upload media (images) to Twitter for use in a Tweet or Twitter-hosted Card.

Parameters
mediaany one is required.
additional_ownersoptional.
cancellationTokenThe cancellation token.
Returns
The result for the uploaded media.

◆ UploadAsync() [2/6]

Task<MediaUploadResult> CoreTweet.Rest.Media.UploadAsync ( IDictionary< string, object >  parameters,
CancellationToken  cancellationToken = default(CancellationToken),
IProgress< UploadProgressInfo progress = null 
)
inline

Upload media (images) to Twitter for use in a Tweet or Twitter-hosted Card.

Available parameters:

- Stream media (any one is required)

- IEnumerable<byte> media (any one is required)

- FileInfo media (any one is required)

- string media_data (any one is required)

- IEnumerable<long> additional_owners (optional)

Parameters
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The result for the uploaded media.

◆ UploadAsync() [3/6]

Task<MediaUploadResult> CoreTweet.Rest.Media.UploadAsync ( IEnumerable< byte >  media,
IEnumerable< long >  additional_owners = null,
CancellationToken  cancellationToken = default(CancellationToken),
IProgress< UploadProgressInfo progress = null 
)
inline

Upload media (images) to Twitter for use in a Tweet or Twitter-hosted Card.

Parameters
mediaany one is required.
additional_ownersoptional.
cancellationTokenThe cancellation token.
Returns
The result for the uploaded media.

◆ UploadAsync() [4/6]

Task<MediaUploadResult> CoreTweet.Rest.Media.UploadAsync ( object  parameters,
CancellationToken  cancellationToken = default(CancellationToken),
IProgress< UploadProgressInfo progress = null 
)
inline

Upload media (images) to Twitter for use in a Tweet or Twitter-hosted Card.

Available parameters:

- Stream media (any one is required)

- IEnumerable<byte> media (any one is required)

- FileInfo media (any one is required)

- string media_data (any one is required)

- IEnumerable<long> additional_owners (optional)

Parameters
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The result for the uploaded media.

◆ UploadAsync() [5/6]

Task<MediaUploadResult> CoreTweet.Rest.Media.UploadAsync ( params Expression< Func< string, object >>[]  parameters)
inline

Upload media (images) to Twitter for use in a Tweet or Twitter-hosted Card.

Available parameters:

- Stream media (any one is required)

- IEnumerable<byte> media (any one is required)

- FileInfo media (any one is required)

- string media_data (any one is required)

- IEnumerable<long> additional_owners (optional)

Parameters
parametersThe parameters.
Returns
The result for the uploaded media.

◆ UploadAsync() [6/6]

Task<MediaUploadResult> CoreTweet.Rest.Media.UploadAsync ( Stream  media,
IEnumerable< long >  additional_owners = null,
CancellationToken  cancellationToken = default(CancellationToken),
IProgress< UploadProgressInfo progress = null 
)
inline

Upload media (images) to Twitter for use in a Tweet or Twitter-hosted Card.

Parameters
mediaany one is required.
additional_ownersoptional.
cancellationTokenThe cancellation token.
Returns
The result for the uploaded media.

◆ UploadChunked() [1/8]

MediaUploadResult CoreTweet.Rest.Media.UploadChunked ( Stream  media,
long  totalBytes,
UploadMediaType  mediaType,
IDictionary< string, object >  parameters 
)
inline

Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card.

Available parameters:

- string media_category (optional)

- IEnumerbale<long> additional_owners (optional)

Parameters
mediaThe raw binary file content being uploaded.
totalBytesThe size of the media being uploaded in bytes.
mediaTypeThe type of the media being uploaded.
parametersThe parameters.
Returns
The result for the uploaded media.

◆ UploadChunked() [2/8]

MediaUploadResult CoreTweet.Rest.Media.UploadChunked ( Stream  media,
long  totalBytes,
UploadMediaType  mediaType,
object  parameters 
)
inline

Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card.

Available parameters:

- string media_category (optional)

- IEnumerbale<long> additional_owners (optional)

Parameters
mediaThe raw binary file content being uploaded.
totalBytesThe size of the media being uploaded in bytes.
mediaTypeThe type of the media being uploaded.
parametersThe parameters.
Returns
The result for the uploaded media.

◆ UploadChunked() [3/8]

MediaUploadResult CoreTweet.Rest.Media.UploadChunked ( Stream  media,
long  totalBytes,
UploadMediaType  mediaType,
params Expression< Func< string, object >>[]  parameters 
)
inline

Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card.

Available parameters:

- string media_category (optional)

- IEnumerbale<long> additional_owners (optional)

Parameters
mediaThe raw binary file content being uploaded.
totalBytesThe size of the media being uploaded in bytes.
mediaTypeThe type of the media being uploaded.
parametersThe parameters.
Returns
The result for the uploaded media.

◆ UploadChunked() [4/8]

MediaUploadResult CoreTweet.Rest.Media.UploadChunked ( Stream  media,
long  totalBytes,
UploadMediaType  mediaType,
string  media_category = null,
IEnumerable< long >  additional_owners = null 
)
inline

Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card.

Parameters
mediaThe raw binary file content being uploaded.
totalBytesThe size of the media being uploaded in bytes.
mediaTypeThe type of the media being uploaded.
media_categoryA string enum value which identifies a media usecase.
additional_ownersA comma-separated string of user IDs to set as additional owners who are allowed to use the returned media_id in Tweets or Cards.
Returns
The result for the uploaded media.

◆ UploadChunked() [5/8]

MediaUploadResult CoreTweet.Rest.Media.UploadChunked ( Stream  media,
UploadMediaType  mediaType,
IDictionary< string, object >  parameters 
)
inline

Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card.

Available parameters:

- string media_category (optional)

- IEnumerbale<long> additional_owners (optional)

Parameters
mediaThe raw binary file content being uploaded.
mediaTypeThe type of the media being uploaded.
parametersThe parameters.
Returns
The result for the uploaded media.

◆ UploadChunked() [6/8]

MediaUploadResult CoreTweet.Rest.Media.UploadChunked ( Stream  media,
UploadMediaType  mediaType,
object  parameters 
)
inline

Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card.

Available parameters:

- string media_category (optional)

- IEnumerbale<long> additional_owners (optional)

Parameters
mediaThe raw binary file content being uploaded.
mediaTypeThe type of the media being uploaded.
parametersThe parameters.
Returns
The result for the uploaded media.

◆ UploadChunked() [7/8]

MediaUploadResult CoreTweet.Rest.Media.UploadChunked ( Stream  media,
UploadMediaType  mediaType,
params Expression< Func< string, object >>[]  parameters 
)
inline

Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card.

Available parameters:

- string media_category (optional)

- IEnumerbale<long> additional_owners (optional)

Parameters
mediaThe raw binary file content being uploaded.
mediaTypeThe type of the media being uploaded.
parametersThe parameters.
Returns
The result for the uploaded media.

◆ UploadChunked() [8/8]

MediaUploadResult CoreTweet.Rest.Media.UploadChunked ( Stream  media,
UploadMediaType  mediaType,
string  media_category = null,
IEnumerable< long >  additional_owners = null 
)
inline

Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card.

Parameters
mediaThe raw binary file content being uploaded.
mediaTypeThe type of the media being uploaded.
media_categoryA string enum value which identifies a media usecase.
additional_ownersA comma-separated string of user IDs to set as additional owners who are allowed to use the returned media_id in Tweets or Cards.
Returns
The result for the uploaded media.

◆ UploadChunkedAsync() [1/8]

Task<MediaUploadResult> CoreTweet.Rest.Media.UploadChunkedAsync ( Stream  media,
long  totalBytes,
UploadMediaType  mediaType,
IDictionary< string, object >  parameters,
CancellationToken  cancellationToken = default(CancellationToken),
IProgress< UploadChunkedProgressInfo progress = null 
)
inline

Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card as an asynchronous operation.

Available parameters:

- string media_category (optional)

- IEnumerbale<long> additional_owners (optional)

Parameters
mediaThe raw binary file content being uploaded.
totalBytesThe size of the media being uploaded in bytes.
mediaTypeThe type of the media being uploaded.
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The task object representing the asynchronous operation.

The Result property on the task object returns the result for the uploaded media.

◆ UploadChunkedAsync() [2/8]

Task<MediaUploadResult> CoreTweet.Rest.Media.UploadChunkedAsync ( Stream  media,
long  totalBytes,
UploadMediaType  mediaType,
object  parameters,
CancellationToken  cancellationToken = default(CancellationToken),
IProgress< UploadChunkedProgressInfo progress = null 
)
inline

Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card as an asynchronous operation.

Available parameters:

- string media_category (optional)

- IEnumerbale<long> additional_owners (optional)

Parameters
mediaThe raw binary file content being uploaded.
totalBytesThe size of the media being uploaded in bytes.
mediaTypeThe type of the media being uploaded.
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The task object representing the asynchronous operation.

The Result property on the task object returns the result for the uploaded media.

◆ UploadChunkedAsync() [3/8]

Task<MediaUploadResult> CoreTweet.Rest.Media.UploadChunkedAsync ( Stream  media,
long  totalBytes,
UploadMediaType  mediaType,
params Expression< Func< string, object >>[]  parameters 
)
inline

Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card as an asynchronous operation.

Available parameters:

- string media_category (optional)

- IEnumerbale<long> additional_owners (optional)

Parameters
mediaThe raw binary file content being uploaded.
totalBytesThe size of the media being uploaded in bytes.
mediaTypeThe type of the media being uploaded.
parametersThe parameters.
Returns
The task object representing the asynchronous operation.

The Result property on the task object returns the result for the uploaded media.

◆ UploadChunkedAsync() [4/8]

Task<MediaUploadResult> CoreTweet.Rest.Media.UploadChunkedAsync ( Stream  media,
long  totalBytes,
UploadMediaType  mediaType,
string  media_category = null,
IEnumerable< long >  additional_owners = null,
CancellationToken  cancellationToken = default(CancellationToken),
IProgress< UploadChunkedProgressInfo progress = null 
)
inline

Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card as an asynchronous operation.

Parameters
mediaThe raw binary file content being uploaded.
totalBytesThe size of the media being uploaded in bytes.
mediaTypeThe type of the media being uploaded.
media_categoryA string enum value which identifies a media usecase.
additional_ownersA comma-separated string of user IDs to set as additional owners who are allowed to use the returned media_id in Tweets or Cards.
cancellationTokenThe cancellation token.
Returns
The result for the uploaded media.

◆ UploadChunkedAsync() [5/8]

Task<MediaUploadResult> CoreTweet.Rest.Media.UploadChunkedAsync ( Stream  media,
UploadMediaType  mediaType,
IDictionary< string, object >  parameters,
CancellationToken  cancellationToken = default(CancellationToken),
IProgress< UploadChunkedProgressInfo progress = null 
)
inline

Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card as an asynchronous operation.

Available parameters:

- string media_category (optional)

- IEnumerbale<long> additional_owners (optional)

Parameters
mediaThe raw binary file content being uploaded.
mediaTypeThe type of the media being uploaded.
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The task object representing the asynchronous operation.

The Result property on the task object returns the result for the uploaded media.

◆ UploadChunkedAsync() [6/8]

Task<MediaUploadResult> CoreTweet.Rest.Media.UploadChunkedAsync ( Stream  media,
UploadMediaType  mediaType,
object  parameters,
CancellationToken  cancellationToken = default(CancellationToken),
IProgress< UploadChunkedProgressInfo progress = null 
)
inline

Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card as an asynchronous operation.

Available parameters:

- string media_category (optional)

- IEnumerbale<long> additional_owners (optional)

Parameters
mediaThe raw binary file content being uploaded.
mediaTypeThe type of the media being uploaded.
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The task object representing the asynchronous operation.

The Result property on the task object returns the result for the uploaded media.

◆ UploadChunkedAsync() [7/8]

Task<MediaUploadResult> CoreTweet.Rest.Media.UploadChunkedAsync ( Stream  media,
UploadMediaType  mediaType,
params Expression< Func< string, object >>[]  parameters 
)
inline

Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card as an asynchronous operation.

Available parameters:

- string media_category (optional)

- IEnumerbale<long> additional_owners (optional)

Parameters
mediaThe raw binary file content being uploaded.
mediaTypeThe type of the media being uploaded.
parametersThe parameters.
Returns
The task object representing the asynchronous operation.

The Result property on the task object returns the result for the uploaded media.

◆ UploadChunkedAsync() [8/8]

Task<MediaUploadResult> CoreTweet.Rest.Media.UploadChunkedAsync ( Stream  media,
UploadMediaType  mediaType,
string  media_category = null,
IEnumerable< long >  additional_owners = null,
CancellationToken  cancellationToken = default(CancellationToken),
IProgress< UploadChunkedProgressInfo progress = null 
)
inline

Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card as an asynchronous operation.

Parameters
mediaThe raw binary file content being uploaded.
mediaTypeThe type of the media being uploaded.
media_categoryA string enum value which identifies a media usecase.
additional_ownersA comma-separated string of user IDs to set as additional owners who are allowed to use the returned media_id in Tweets or Cards.
cancellationTokenThe cancellation token.
Returns
The result for the uploaded media.

◆ UploadChunkedWithRetryAsync() [1/8]

Task<MediaUploadResult> CoreTweet.Rest.Media.UploadChunkedWithRetryAsync ( Stream  media,
long  totalBytes,
UploadMediaType  mediaType,
int  retryCount,
int  retryDelayInMilliseconds,
IDictionary< string, object >  parameters,
CancellationToken  cancellationToken = default(CancellationToken),
IProgress< UploadChunkedProgressInfo progress = null 
)
inline

Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card as an asynchronous operation.

Available parameters:

- string media_category (optional)

- IEnumerbale<long> additional_owners (optional)

Parameters
mediaThe raw binary file content being uploaded.
totalBytesThe size of the media being uploaded in bytes.
mediaTypeThe type of the media being uploaded.
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The task object representing the asynchronous operation.

The Result property on the task object returns the result for the uploaded media.

◆ UploadChunkedWithRetryAsync() [2/8]

Task<MediaUploadResult> CoreTweet.Rest.Media.UploadChunkedWithRetryAsync ( Stream  media,
long  totalBytes,
UploadMediaType  mediaType,
int  retryCount,
int  retryDelayInMilliseconds,
object  parameters,
CancellationToken  cancellationToken = default(CancellationToken),
IProgress< UploadChunkedProgressInfo progress = null 
)
inline

Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card as an asynchronous operation.

Available parameters:

- string media_category (optional)

- IEnumerbale<long> additional_owners (optional)

Parameters
mediaThe raw binary file content being uploaded.
totalBytesThe size of the media being uploaded in bytes.
mediaTypeThe type of the media being uploaded.
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The task object representing the asynchronous operation.

The Result property on the task object returns the result for the uploaded media.

◆ UploadChunkedWithRetryAsync() [3/8]

Task<MediaUploadResult> CoreTweet.Rest.Media.UploadChunkedWithRetryAsync ( Stream  media,
long  totalBytes,
UploadMediaType  mediaType,
int  retryCount,
int  retryDelayInMilliseconds,
params Expression< Func< string, object >>[]  parameters 
)
inline

Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card as an asynchronous operation.

Available parameters:

- string media_category (optional)

- IEnumerbale<long> additional_owners (optional)

Parameters
mediaThe raw binary file content being uploaded.
totalBytesThe size of the media being uploaded in bytes.
mediaTypeThe type of the media being uploaded.
parametersThe parameters.
Returns
The task object representing the asynchronous operation.

The Result property on the task object returns the result for the uploaded media.

◆ UploadChunkedWithRetryAsync() [4/8]

Task<MediaUploadResult> CoreTweet.Rest.Media.UploadChunkedWithRetryAsync ( Stream  media,
long  totalBytes,
UploadMediaType  mediaType,
int  retryCount,
int  retryDelayInMilliseconds,
string  media_category = null,
IEnumerable< long >  additional_owners = null,
CancellationToken  cancellationToken = default(CancellationToken),
IProgress< UploadChunkedProgressInfo progress = null 
)
inline

Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card as an asynchronous operation.

Parameters
mediaThe raw binary file content being uploaded.
totalBytesThe size of the media being uploaded in bytes.
mediaTypeThe type of the media being uploaded.
media_categoryA string enum value which identifies a media usecase.
additional_ownersA comma-separated string of user IDs to set as additional owners who are allowed to use the returned media_id in Tweets or Cards.
cancellationTokenThe cancellation token.
Returns
The result for the uploaded media.

◆ UploadChunkedWithRetryAsync() [5/8]

Task<MediaUploadResult> CoreTweet.Rest.Media.UploadChunkedWithRetryAsync ( Stream  media,
UploadMediaType  mediaType,
int  retryCount,
int  retryDelayInMilliseconds,
IDictionary< string, object >  parameters,
CancellationToken  cancellationToken = default(CancellationToken),
IProgress< UploadChunkedProgressInfo progress = null 
)
inline

Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card as an asynchronous operation.

Available parameters:

- string media_category (optional)

- IEnumerbale<long> additional_owners (optional)

Parameters
mediaThe raw binary file content being uploaded.
mediaTypeThe type of the media being uploaded.
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The task object representing the asynchronous operation.

The Result property on the task object returns the result for the uploaded media.

◆ UploadChunkedWithRetryAsync() [6/8]

Task<MediaUploadResult> CoreTweet.Rest.Media.UploadChunkedWithRetryAsync ( Stream  media,
UploadMediaType  mediaType,
int  retryCount,
int  retryDelayInMilliseconds,
params Expression< Func< string, object >>[]  parameters 
)
inline

Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card as an asynchronous operation.

Available parameters:

- string media_category (optional)

- IEnumerbale<long> additional_owners (optional)

Parameters
mediaThe raw binary file content being uploaded.
mediaTypeThe type of the media being uploaded.
parametersThe parameters.
Returns
The task object representing the asynchronous operation.

The Result property on the task object returns the result for the uploaded media.

◆ UploadChunkedWithRetryAsync() [7/8]

Task<MediaUploadResult> CoreTweet.Rest.Media.UploadChunkedWithRetryAsync ( Stream  media,
UploadMediaType  mediaType,
int  retryCount,
int  retryDelayInMilliseconds,
string  media_category = null,
IEnumerable< long >  additional_owners = null,
CancellationToken  cancellationToken = default(CancellationToken),
IProgress< UploadChunkedProgressInfo progress = null 
)
inline

Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card as an asynchronous operation.

Parameters
mediaThe raw binary file content being uploaded.
mediaTypeThe type of the media being uploaded.
media_categoryA string enum value which identifies a media usecase.
additional_ownersA comma-separated string of user IDs to set as additional owners who are allowed to use the returned media_id in Tweets or Cards.
cancellationTokenThe cancellation token.
Returns
The result for the uploaded media.

◆ UploadChunkedWithRetryAsync() [8/8]

Task<MediaUploadResult> CoreTweet.Rest.Media.UploadChunkedWithRetryAsync ( Stream  media,
UploadMediaType  mediaType,
object  parameters,
int  retryCount,
int  retryDelayInMilliseconds,
CancellationToken  cancellationToken = default(CancellationToken),
IProgress< UploadChunkedProgressInfo progress = null 
)
inline

Uploads videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card as an asynchronous operation.

Available parameters:

- string media_category (optional)

- IEnumerbale<long> additional_owners (optional)

Parameters
mediaThe raw binary file content being uploaded.
mediaTypeThe type of the media being uploaded.
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The task object representing the asynchronous operation.

The Result property on the task object returns the result for the uploaded media.

◆ UploadFinalizeCommand() [1/4]

UploadFinalizeCommandResult CoreTweet.Rest.Media.UploadFinalizeCommand ( IDictionary< string, object >  parameters)
inline

Complete the upload.

Available parameters:

- long media_id (required)

Parameters
parametersThe parameters.
Returns
The result for the uploaded media.

◆ UploadFinalizeCommand() [2/4]

UploadFinalizeCommandResult CoreTweet.Rest.Media.UploadFinalizeCommand ( long  media_id)
inline

Complete the upload.

Parameters
media_idrequired.
Returns
The result for the uploaded media.

◆ UploadFinalizeCommand() [3/4]

UploadFinalizeCommandResult CoreTweet.Rest.Media.UploadFinalizeCommand ( object  parameters)
inline

Complete the upload.

Available parameters:

- long media_id (required)

Parameters
parametersThe parameters.
Returns
The result for the uploaded media.

◆ UploadFinalizeCommand() [4/4]

UploadFinalizeCommandResult CoreTweet.Rest.Media.UploadFinalizeCommand ( params Expression< Func< string, object >>[]  parameters)
inline

Complete the upload.

Available parameters:

- long media_id (required)

Parameters
parametersThe parameters.
Returns
The result for the uploaded media.

◆ UploadFinalizeCommandAsync() [1/4]

Task<UploadFinalizeCommandResult> CoreTweet.Rest.Media.UploadFinalizeCommandAsync ( IDictionary< string, object >  parameters,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Complete the upload.

Available parameters:

- long media_id (required)

Parameters
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The result for the uploaded media.

◆ UploadFinalizeCommandAsync() [2/4]

Task<UploadFinalizeCommandResult> CoreTweet.Rest.Media.UploadFinalizeCommandAsync ( long  media_id,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Complete the upload.

Parameters
media_idrequired.
cancellationTokenThe cancellation token.
Returns
The result for the uploaded media.

◆ UploadFinalizeCommandAsync() [3/4]

Task<UploadFinalizeCommandResult> CoreTweet.Rest.Media.UploadFinalizeCommandAsync ( object  parameters,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Complete the upload.

Available parameters:

- long media_id (required)

Parameters
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The result for the uploaded media.

◆ UploadFinalizeCommandAsync() [4/4]

Task<UploadFinalizeCommandResult> CoreTweet.Rest.Media.UploadFinalizeCommandAsync ( params Expression< Func< string, object >>[]  parameters)
inline

Complete the upload.

Available parameters:

- long media_id (required)

Parameters
parametersThe parameters.
Returns
The result for the uploaded media.

◆ UploadInitCommand() [1/5]

UploadInitCommandResult CoreTweet.Rest.Media.UploadInitCommand ( IDictionary< string, object >  parameters)
inline

Initialize an upload.

Available parameters:

- int total_bytes (required)

- string media_type (any one is required)

- UploadMediaType media_type (any one is required)

- IEnumerable<long> additional_owners (optional)

- string media_category (optional)

- bool shared (optional)

Parameters
parametersThe parameters.
Returns
The result of INIT command.

◆ UploadInitCommand() [2/5]

UploadInitCommandResult CoreTweet.Rest.Media.UploadInitCommand ( int  total_bytes,
string  media_type,
IEnumerable< long >  additional_owners = null,
string  media_category = null,
bool?  shared = null 
)
inline

Initialize an upload.

Parameters
total_bytesrequired.
media_typeany one is required.
additional_ownersoptional.
media_categoryoptional.
sharedoptional.
Returns
The result of INIT command.

◆ UploadInitCommand() [3/5]

UploadInitCommandResult CoreTweet.Rest.Media.UploadInitCommand ( int  total_bytes,
UploadMediaType  media_type,
IEnumerable< long >  additional_owners = null,
string  media_category = null,
bool?  shared = null 
)
inline

Initialize an upload.

Parameters
total_bytesrequired.
media_typeany one is required.
additional_ownersoptional.
media_categoryoptional.
sharedoptional.
Returns
The result of INIT command.

◆ UploadInitCommand() [4/5]

UploadInitCommandResult CoreTweet.Rest.Media.UploadInitCommand ( object  parameters)
inline

Initialize an upload.

Available parameters:

- int total_bytes (required)

- string media_type (any one is required)

- UploadMediaType media_type (any one is required)

- IEnumerable<long> additional_owners (optional)

- string media_category (optional)

- bool shared (optional)

Parameters
parametersThe parameters.
Returns
The result of INIT command.

◆ UploadInitCommand() [5/5]

UploadInitCommandResult CoreTweet.Rest.Media.UploadInitCommand ( params Expression< Func< string, object >>[]  parameters)
inline

Initialize an upload.

Available parameters:

- int total_bytes (required)

- string media_type (any one is required)

- UploadMediaType media_type (any one is required)

- IEnumerable<long> additional_owners (optional)

- string media_category (optional)

- bool shared (optional)

Parameters
parametersThe parameters.
Returns
The result of INIT command.

◆ UploadInitCommandAsync() [1/5]

Task<UploadInitCommandResult> CoreTweet.Rest.Media.UploadInitCommandAsync ( IDictionary< string, object >  parameters,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Initialize an upload.

Available parameters:

- int total_bytes (required)

- string media_type (any one is required)

- UploadMediaType media_type (any one is required)

- IEnumerable<long> additional_owners (optional)

- string media_category (optional)

- bool shared (optional)

Parameters
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The result of INIT command.

◆ UploadInitCommandAsync() [2/5]

Task<UploadInitCommandResult> CoreTweet.Rest.Media.UploadInitCommandAsync ( int  total_bytes,
string  media_type,
IEnumerable< long >  additional_owners = null,
string  media_category = null,
bool?  shared = null,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Initialize an upload.

Parameters
total_bytesrequired.
media_typeany one is required.
additional_ownersoptional.
media_categoryoptional.
sharedoptional.
cancellationTokenThe cancellation token.
Returns
The result of INIT command.

◆ UploadInitCommandAsync() [3/5]

Task<UploadInitCommandResult> CoreTweet.Rest.Media.UploadInitCommandAsync ( int  total_bytes,
UploadMediaType  media_type,
IEnumerable< long >  additional_owners = null,
string  media_category = null,
bool?  shared = null,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Initialize an upload.

Parameters
total_bytesrequired.
media_typeany one is required.
additional_ownersoptional.
media_categoryoptional.
sharedoptional.
cancellationTokenThe cancellation token.
Returns
The result of INIT command.

◆ UploadInitCommandAsync() [4/5]

Task<UploadInitCommandResult> CoreTweet.Rest.Media.UploadInitCommandAsync ( object  parameters,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Initialize an upload.

Available parameters:

- int total_bytes (required)

- string media_type (any one is required)

- UploadMediaType media_type (any one is required)

- IEnumerable<long> additional_owners (optional)

- string media_category (optional)

- bool shared (optional)

Parameters
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The result of INIT command.

◆ UploadInitCommandAsync() [5/5]

Task<UploadInitCommandResult> CoreTweet.Rest.Media.UploadInitCommandAsync ( params Expression< Func< string, object >>[]  parameters)
inline

Initialize an upload.

Available parameters:

- int total_bytes (required)

- string media_type (any one is required)

- UploadMediaType media_type (any one is required)

- IEnumerable<long> additional_owners (optional)

- string media_category (optional)

- bool shared (optional)

Parameters
parametersThe parameters.
Returns
The result of INIT command.

◆ UploadStatusCommand() [1/4]

UploadFinalizeCommandResult CoreTweet.Rest.Media.UploadStatusCommand ( IDictionary< string, object >  parameters)
inline

Check the processing status of the upload (for async video uploads only).

Available parameters:

- long media_id (required)

Parameters
parametersThe parameters.
Returns
The status of the upload.

◆ UploadStatusCommand() [2/4]

UploadFinalizeCommandResult CoreTweet.Rest.Media.UploadStatusCommand ( long  media_id)
inline

Check the processing status of the upload (for async video uploads only).

Parameters
media_idrequired.
Returns
The status of the upload.

◆ UploadStatusCommand() [3/4]

UploadFinalizeCommandResult CoreTweet.Rest.Media.UploadStatusCommand ( object  parameters)
inline

Check the processing status of the upload (for async video uploads only).

Available parameters:

- long media_id (required)

Parameters
parametersThe parameters.
Returns
The status of the upload.

◆ UploadStatusCommand() [4/4]

UploadFinalizeCommandResult CoreTweet.Rest.Media.UploadStatusCommand ( params Expression< Func< string, object >>[]  parameters)
inline

Check the processing status of the upload (for async video uploads only).

Available parameters:

- long media_id (required)

Parameters
parametersThe parameters.
Returns
The status of the upload.

◆ UploadStatusCommandAsync() [1/4]

Task<UploadFinalizeCommandResult> CoreTweet.Rest.Media.UploadStatusCommandAsync ( IDictionary< string, object >  parameters,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Check the processing status of the upload (for async video uploads only).

Available parameters:

- long media_id (required)

Parameters
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The status of the upload.

◆ UploadStatusCommandAsync() [2/4]

Task<UploadFinalizeCommandResult> CoreTweet.Rest.Media.UploadStatusCommandAsync ( long  media_id,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Check the processing status of the upload (for async video uploads only).

Parameters
media_idrequired.
cancellationTokenThe cancellation token.
Returns
The status of the upload.

◆ UploadStatusCommandAsync() [3/4]

Task<UploadFinalizeCommandResult> CoreTweet.Rest.Media.UploadStatusCommandAsync ( object  parameters,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Check the processing status of the upload (for async video uploads only).

Available parameters:

- long media_id (required)

Parameters
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The status of the upload.

◆ UploadStatusCommandAsync() [4/4]

Task<UploadFinalizeCommandResult> CoreTweet.Rest.Media.UploadStatusCommandAsync ( params Expression< Func< string, object >>[]  parameters)
inline

Check the processing status of the upload (for async video uploads only).

Available parameters:

- long media_id (required)

Parameters
parametersThe parameters.
Returns
The status of the upload.

Member Data Documentation

◆ Metadata

MediaMetadata CoreTweet.Rest.Media.Metadata => new MediaMetadata(this.Tokens)

Gets the wrapper of media/metadata.


The documentation for this class was generated from the following files: