Interface QiyClient

All Superinterfaces:
io.vertx.up.plugin.TpClient<QiyClient>
All Known Implementing Classes:
QiyClientImpl

public interface QiyClient extends io.vertx.up.plugin.TpClient<QiyClient>
QiyClient for platform of http://open.iqiyi.com/ Video open sdk
  • Method Summary

    Modifier and Type
    Method
    Description
    authorize(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler)
    /iqiyi/authorize
    static QiyClient
    createShared(io.vertx.core.Vertx vertx)
     
    static QiyClient
    createShared(io.vertx.core.Vertx vertx, io.vertx.core.json.JsonObject config)
     
    init(io.vertx.core.json.JsonObject params)
     
    refreshToken(String refreshToken, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler)
    /oauth2/token
    requestFile(String fileType, String size, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler)
    /openupload
    upload(String address, String size, String range, String fileId, char[] content)
     
  • Method Details

    • createShared

      static QiyClient createShared(io.vertx.core.Vertx vertx)
    • createShared

      static QiyClient createShared(io.vertx.core.Vertx vertx, io.vertx.core.json.JsonObject config)
    • init

      QiyClient init(io.vertx.core.json.JsonObject params)
      Specified by:
      init in interface io.vertx.up.plugin.TpClient<QiyClient>
    • authorize

      QiyClient authorize(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler)
      /iqiyi/authorize
      Parameters:
      handler - async handler
      Returns:
      self reference
    • refreshToken

      QiyClient refreshToken(String refreshToken, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler)
      /oauth2/token
      Parameters:
      refreshToken - refresh token
      handler - async handler
      Returns:
      self reference
    • requestFile

      QiyClient requestFile(String fileType, String size, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler)
      /openupload
      Parameters:
      fileType - request up.god.file type
      size - request up.god.file size
      handler - async handler
      Returns:
      self reference
    • upload

      QiyClient upload(String address, String size, String range, String fileId, char[] content)
      Parameters:
      address - upload address
      size - up.god.file size
      range - size range
      fileId - return id by requestFile
      content - File content part
      Returns:
      self reference