Data Connection to YouTube

  • Last update:  2024-05-11
  • Overview

    Version

    FineReport VersionFunctional Change

    11.0

    /

    Application Scenario

    This document introduces how to connect to YouTube with CData driver in FineReport.

    Preparation

    Version and Driver

    Driver Download

    According to different system environments Windows//Linux/Mac, choose the appropriate installation package to download on the CData official website.

    Driver Installation

    Install the driver to the local device, and the directory structure after installation is shown in the following figure.

    iconNote:
    The readme.htm file contains instructions for using the driver and can be referred to.


    Driver Login

    iconNote:

    The CData driver has a one-month trial period, and continued use afterward requires payment.

    1. The document takes the trial version as an example, and a login account is registered.


    2. The generated lib directory is shown in the following figure.

    3. Upload the driver to FineReport.

    Versions Before 11.0.5

    Copy and paste files in the lib directory to the lib folder D:\FineReport_11.0\webapps\webroot\WEB-INF\lib in the FineReport project, as shown in the following figure.

    Versions After 11.0.5

    Refer to section "Creating a Data Connection" in Driver Management to upload the driver, and manually place the .lic file in D:\FineReport_11.0\webapps\webroot\WEB-INF\lib.

    Getting YouTube User ID

    Connection Procedure

    Connection Test with CData Test Connection Tools

    1. In the driver installation directory, directly execute java -jar cdata.jdbc.youtubeanalytics.jar to open the test connection window provided by CData and enter the relevant information.

    Configuration Item

    Value

    Auth Scheme

    OAuth

    Initiate OAuth

    GETANDREFRESH

    Channel ID

    User ID obtained in section "Getting Youtube User ID."

     

    2. After successfully testing the connection, copy and paste the link information in Connection String, for example, jdbc:youtubeanalytics:AuthScheme=OAuth;ChannelId=user ID;InitiateOAuth=GETANDREFRESH.

    Connection Test with FineReport

    1. Open the designer and create a data link Others.

    2. Modify the driver by copying and pasting cdata.jdbc.youtubeanalytic.YouTubeAnalyticsDriver to the driver field.

    3. Enter the URL with the copied link information from step 1, for example, jdbc:youtubeanalytics:AuthScheme=OAuth;ChannelId=user ID;InitiateOAuth=GETANDREFRESH.

    4. Click Test Connection, and after the successful connection, click OK to proceed with the normal data fetching operation.

    Adding Tables in the Database to FineReport

    For details, see Dataset.


    Attachment List


    Theme: Data Preparation
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy