Packages

package client

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. case class AuthInfo(accessToken: String, expires: DateTime, refreshToken: String) extends Product with Serializable
  2. case class AuthRequest(apiKey: String, secret: String) extends Product with Serializable

    Created by apatzer on 3/20/17.

  3. case class ClientConfig(baseRestUri: Uri, apiKey: String, apiSecret: String) extends Product with Serializable
  4. case class EmptyResponse(none: Option[String] = scala.None) extends Product with Serializable
  5. trait HttpClient extends Closeable

    Designed to unify interfaces of play.api.libs.ws.StandaloneWSClient and play.api.libs.ws.WSClient so that these can be used interchangeably.

    Designed to unify interfaces of play.api.libs.ws.StandaloneWSClient and play.api.libs.ws.WSClient so that these can be used interchangeably. Can be used to accommodate play's internal WsClient or StandaloneAhcWSClient bundled with the library.

  6. case class RedoxAuthorizationException(msg: String) extends Exception with Product with Serializable
  7. class RedoxClient extends RedoxClientComponents

    Created by apatzer on 3/20/17.

  8. abstract class RedoxClientComponents extends AnyRef
  9. case class RedoxError(ID: Long, Text: String, Type: Option[String] = scala.None, Module: Option[String] = scala.None) extends Product with Serializable
  10. case class RedoxErrorResponse(Errors: Seq[RedoxError] = scala.collection.Seq.empty[Nothing]) extends Product with Serializable
  11. case class RedoxResponse[T](result: Either[RedoxErrorResponse, T]) extends Product with Serializable

    Wrapper for all responses, for common functionality.

  12. class RedoxTokenManager extends RedoxClientComponents

    Redox uses a perishable accessToken with an expiry to authenticate requests.

    Redox uses a perishable accessToken with an expiry to authenticate requests. The accessToken is obtained by exchanging a apiKey and an apiSecret. On the first exchange we receive:

    1. accessToken 2. expiry time 3. refreshToken

    We use the RefreshToken obtained from the first request to obtain new accessTokens as they expire.

    The RedoxTokenManager schedules the refresh and storage of accessTokens and keeps them valid, so a client doesn't have to authenticate each time it makes a request.

  13. case class RefreshRequest(apiKey: String, refreshToken: String) extends Product with Serializable

Value Members

  1. object AuthInfo extends Serializable
  2. object AuthRequest extends Serializable
  3. object ClientConfig extends Serializable
  4. object EmptyResponse extends Serializable
  5. object HttpClient
  6. object RedoxClient
  7. object RedoxError extends Serializable
  8. object RedoxErrorResponse extends Serializable
  9. object RefreshRequest extends Serializable

Ungrouped