Class QiyClientImpl

    • Method Detail

      • init

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

        public QiyClient authorize​(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler)
        Description copied from interface: QiyClient
        /iqiyi/authorize
        Specified by:
        authorize in interface QiyClient
        Parameters:
        handler - async handler
        Returns:
        self reference
      • refreshToken

        public QiyClient refreshToken​(String refreshToken,
                                      io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler)
        Description copied from interface: QiyClient
        /oauth2/token
        Specified by:
        refreshToken in interface QiyClient
        Parameters:
        refreshToken - refresh token
        handler - async handler
        Returns:
        self reference
      • requestFile

        public QiyClient requestFile​(String fileType,
                                     String fileSize,
                                     io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler)
        Description copied from interface: QiyClient
        /openupload
        Specified by:
        requestFile in interface QiyClient
        Parameters:
        fileType - request up.god.file type
        fileSize - request up.god.file size
        handler - async handler
        Returns:
        self reference
      • upload

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