Updated on 2024-05-22 GMT+08:00

Performing Online Debugging

API Explorer, the online debugging tool provides API retrieval, debugging, and code example generation. Additionally, you can build, debug, and run code in CloudIDE.

This section uses Passport OCR as an example to walk you through how you can use API Explorer to debug an API.

Prerequisites

  • You have registered a Huawei ID, enabled Huawei Cloud services, and completed real-name authentication. Your account cannot be in arrears, frozen, or deregistered.
  • You have subscribed to General Text OCR by referring to Subscribing to an OCR Service.

Procedure

  1. Log in to API Explorer.

    After the login, the X-Auth-Token and project_id parameters are automatically set.

  2. Enter the data of the image to be detected.

    The input data can be an image or a URL.

  3. Click Debug to obtain the recognition results.

    Figure 1 Recognition results