Package io.vertx.tp.plugin.qiy
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
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description QiyClientauthorize(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)QiyClientinit(io.vertx.core.json.JsonObject params)QiyClientrefreshToken(String refreshToken, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler)/oauth2/tokenQiyClientrequestFile(String fileType, String size, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler)/openuploadQiyClientupload(String address, String size, String range, String fileId, char[] content)
-
-
-
Method Detail
-
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:
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
-
-