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

POST /ccmessaging/queryPhraseByKeyword

Description

Associate common phrases based on keywords entered by users.

Method

POST

URI

https://Domain Name/apiaccess/ccmessaging/queryPhraseByKeyword.For example,the domain name is service.besclouds.com.

Request

Table 1 Header Parameters

Seq.

Name

Type

Mandatory

Description

1

ccmessaging-token

string

True

ccmessagign-token generated by the applyToken interface

2

x-app-key

string

False

The same as app_key, which uniquely identifies a user,configuration on the API Fabric

3

Authorization

string

False

Authentication field. The value format is as follows: Bearer +AccessToken in the return values of the tokenByAKSK interface (there is a space after Bearer)

Table 2 Body Parameters

Seq.

Name

Type

Mandatory

Description

1

reqBody

8.1.1

True

Request body

Response

  • Status code: 200

    8.1.2

  • Status code: 400

    Incorrect request:Check the request path and parameters.

  • Status code: 401

    Unauthorized:1.Check whether you have purchased related services.2.Contact the customer service personnel to check the current status of your account.

  • Status code: 404

    Request not found: Check the request path.

  • Status code: 500

    Service failure:Check the values of the parameters in the request.

Error Code

None.

Message Example

  • Scene description: Message Example

    URL:

    Request Header:

    ccmessaging-token: XXXXXXXXX

    Request Parameter:

    { "strContent": "Mesh", "locale": "zh", "channel": "WEB" }

    Response Parameter:

    { "question": [ "Where can I download the Grid app?", "How do I log in to the Grid app?", "What Mobile Phone Versions Does the Grid App Support?", "After logging in to the grid version of the app, you do not have the permission to scan the street to place orders and grid account menus.", "How to log in to the middle-screen grid system on a PC?" ], "resultCode": "0" }