Packages

trait TwitterMediaClient extends AnyRef

Implements the available endpoints for the MEDIA API.

Source
TwitterMediaClient.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TwitterMediaClient
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract val restClient: RestClient
    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. 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

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. 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

  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. 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

  20. 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

  21. 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

  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped