trait TwitterMediaClient extends AnyRef
Implements the available endpoints for the MEDIA API.
- Source
- TwitterMediaClient.scala
- Alphabetic
- By Inheritance
- TwitterMediaClient
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract val restClient: RestClient
- Attributes
- protected
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def createMediaDescription(media_id: Long, description: String): Future[Unit]
This endpoint can be used to provide additional information about the uploaded media_id.
This endpoint can be used to provide additional information about the uploaded media_id. This feature is currently only supported for images and GIFs. For more information see https://developer.twitter.com/en/docs/media/upload-media/api-reference/post-media-metadata-create.
- media_id
: The id of the media.
- description
: The description of the media
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def statusMedia(media_id: Long): Future[MediaDetails]
Returns the status of a media upload for pulling purposes.
Returns the status of a media upload for pulling purposes. For more information see https://developer.twitter.com/en/docs/media/upload-media/api-reference/get-media-upload-status.
- media_id
: The id of the media.
- returns
: The media details
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def uploadMediaFromFile(file: File, additional_owners: Seq[Long] = Seq.empty): Future[MediaDetails]
Uploads media asynchronously from a file.
Uploads media asynchronously from a file. For more information see https://developer.twitter.com/en/docs/media/upload-media/api-reference/post-media-upload.
- file
: the file to upload.
- additional_owners
: By default is empty. A comma-separated list of user IDs to set as additional owners allowed to use the returned media_id in Tweets or Cards. Up to 100 additional owners may be specified.
- returns
: The media details
- def uploadMediaFromInputStream(inputStream: InputStream, size: Long, media_type: MediaType, filename: Option[String] = None, additional_owners: Seq[Long] = Seq.empty): Future[MediaDetails]
Uploads media asynchronously from an input stream.
Uploads media asynchronously from an input stream. For more information see https://developer.twitter.com/en/docs/media/upload-media/api-reference/post-media-upload.
- inputStream
: the input stream to upload.
- size
: the size of the data to upload.
- media_type
: the type of the media to upload.
- filename
: By default is
None
. The filename used when uploading the media.- additional_owners
: By default is empty. A comma-separated list of user IDs to set as additional owners allowed to use the returned media_id in Tweets or Cards. Up to 100 additional owners may be specified.
- returns
: The media details
- def uploadMediaFromPath(filePath: String, additional_owners: Seq[Long] = Seq.empty): Future[MediaDetails]
Uploads media asynchronously from an absolute file path.
Uploads media asynchronously from an absolute file path. For more information see https://developer.twitter.com/en/docs/media/upload-media/api-reference/post-media-upload.
- filePath
: the absolute path of the file to upload.
- additional_owners
: By default is empty. A comma-separated list of user IDs to set as additional owners allowed to use the returned media_id in Tweets or Cards. Up to 100 additional owners may be specified.
- returns
: The media details
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])