Class

zhmyh.yandex.api.translate

Translate

Related Doc: package translate

Permalink

class Translate extends TranslateBase with YandexAPI

Makes the Yandex Translate API available to Scala applications.

Linear Supertypes
YandexAPI, TranslateBase, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Translate
  2. YandexAPI
  3. TranslateBase
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Translate(key: String)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val apiURI: String

    Permalink

    The API URI for specific Yandex service.

    The API URI for specific Yandex service.

    Attributes
    protected
    Definition Classes
    TranslateYandexAPI
  5. val apiVer: String

    Permalink

    The API key and API version.

    The API key and API version.

    Attributes
    protected
    Definition Classes
    TranslateYandexAPI
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def detect(text: String): Try[Language]

    Permalink

    Detects The language from given text.

    Detects The language from given text.

    Definition Classes
    TranslateTranslateBase
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def getJSON(url: String, params: Map[String, String]): Try[JsValue]

    Permalink

    Forms HTTP request, sends it using GET method and returns the result of the request as JsValue.

    Forms HTTP request, sends it using GET method and returns the result of the request as JsValue.

    url

    The URL to query for a JsValue.

    params

    Additional GET query parameters.

    returns

    The instance of Try[JsValue]

    Attributes
    protected
    Definition Classes
    YandexAPI
  14. def getJSON(url: String, params: (String, String)*): Try[JsValue]

    Permalink

    Forms HTTP request, sends it using GET method and returns the result of the request as JsValue.

    Forms HTTP request, sends it using GET method and returns the result of the request as JsValue.

    url

    The URL to query for a JsValue.

    params

    Additional GET query parameters.

    returns

    The instance of Try[JsValue]

    Attributes
    protected
    Definition Classes
    YandexAPI
  15. def getJSON(url: String): Try[JsValue]

    Permalink

    Forms HTTP request, sends it using GET method and returns the result of the request as JsValue.

    Forms HTTP request, sends it using GET method and returns the result of the request as JsValue.

    url

    The URL to query for a JsValue.

    returns

    The instance of Try[JsValue]

    Attributes
    protected
    Definition Classes
    YandexAPI
  16. def getJSON(url: String, params: List[(String, String)]): Try[JsValue]

    Permalink

    Forms HTTP request, sends it using GET method and returns the result of the request as JsValue.

    Forms HTTP request, sends it using GET method and returns the result of the request as JsValue.

    url

    The URL to query for a JsValue.

    params

    Additional GET query parameters.

    returns

    The instance of Try[JsValue]

    Attributes
    protected
    Definition Classes
    YandexAPI
  17. def getLangs: Try[List[(Language, Language)]]

    Permalink

    Gets a list of available translation directions using Yandex Translate.

    Gets a list of available translation directions using Yandex Translate.

    Definition Classes
    TranslateTranslateBase
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. val jsIfaceName: String

    Permalink

    The local name of JSON interface.

    The local name of JSON interface.

    Attributes
    protected
    Definition Classes
    TranslateYandexAPI
  21. def jsonURI: String

    Permalink

    Returns URI for API JSON interface.

    Returns URI for API JSON interface.

    Attributes
    protected
    Definition Classes
    YandexAPI
  22. val key: String

    Permalink

    The API key and API version.

    The API key and API version.

    Attributes
    protected
    Definition Classes
    TranslateYandexAPI
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. def retrieveJSON(url: String, params: Map[String, String]): Try[JsValue]

    Permalink

    Forms HTTP request, sends it using POST method and returns the result of the request as JsValue.

    Forms HTTP request, sends it using POST method and returns the result of the request as JsValue.

    url

    The URL to query for a JsValue.

    params

    Additional POST parameters.

    returns

    The instance of Try[JsValue]

    Attributes
    protected
    Definition Classes
    YandexAPI
  27. def retrieveJSON(url: String, params: (String, String)*): Try[JsValue]

    Permalink

    Forms HTTP request, sends it using POST method and returns the result of the request as JsValue.

    Forms HTTP request, sends it using POST method and returns the result of the request as JsValue.

    url

    The URL to query for a JsValue.

    params

    Additional POST parameters.

    returns

    The instance of Try[JsValue]

    Attributes
    protected
    Definition Classes
    YandexAPI
  28. def retrieveJSON(url: String, params: List[(String, String)]): Try[JsValue]

    Permalink

    Forms HTTP request, sends it using POST method and returns the result of the request as JsValue.

    Forms HTTP request, sends it using POST method and returns the result of the request as JsValue.

    url

    The URL to query for a JsValue.

    params

    Additional POST parameters.

    returns

    The instance of Try[JsValue]

    Attributes
    protected
    Definition Classes
    YandexAPI
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. def translate(text: String, to: Language): Try[String]

    Permalink

    Recognizes source text language and translates to given Language using Yandex Translate.

    Recognizes source text language and translates to given Language using Yandex Translate.

    text

    the String to translate.

    to

    The language code to translate to.

    Definition Classes
    TranslateTranslateBase
  32. def translate(text: String, from: Language, to: Language): Try[String]

    Permalink

    Translates text from a given Language to another given Language using Yandex Translate.

    Translates text from a given Language to another given Language using Yandex Translate.

    text

    the String to translate.

    from

    The language code to translate from.

    to

    The language code to translate to.

    Definition Classes
    TranslateTranslateBase
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from YandexAPI

Inherited from TranslateBase

Inherited from AnyRef

Inherited from Any

Ungrouped