Package io.vertx.tp.plugin.qiy
Interface QiyClient
- All Superinterfaces:
io.vertx.up.plugin.TpClient<QiyClient>
- All Known Implementing Classes:
QiyClientImpl
QiyClient for platform of http://open.iqiyi.com/
Video open sdk
-
Method Summary
Modifier and TypeMethodDescriptionauthorize(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler) /iqiyi/authorizestatic QiyClientcreateShared(io.vertx.core.Vertx vertx) static QiyClientcreateShared(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/tokenrequestFile(String fileType, String size, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler) /openupload
-
Method Details
-
init
- Specified by:
initin interfaceio.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 tokenhandler- 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 typesize- request up.god.file sizehandler- async handler- Returns:
- self reference
-
upload
- Parameters:
address- upload addresssize- up.god.file sizerange- size rangefileId- return id by requestFilecontent- File content part- Returns:
- self reference