Invocation methods

更新时间:
复制 MD 格式

To call an NLP AutoML Platform API, send an HTTP GET request to the service endpoint. Include the required request parameters in the request as described in the API reference. The service returns a result after the call. Both requests and responses are encoded in the UTF-8 character set.

Request structure

The NLP AutoML Platform service provides Remote Procedure Call (RPC) APIs. You can call these APIs by sending HTTP GET requests.

The request structure is as follows:
http://Endpoint/?Action=xx&Parameters
Where:
  • Endpoint: The service endpoint for the NLP AutoML Platform API is nlp-automl.cn-hangzhou.aliyuncs.com.
    • The domain name resolves to dynamic IP addresses. Do not access the service using an IP address.
  • Action: The operation to perform, such as GetPredictResult to retrieve a model prediction result.
  • Version: The API version to use. The API version for the NLP AutoML Platform is 2019-11-11.
  • Parameters: The request parameters. Separate each parameter with an ampersand (&).

    Request parameters consist of common parameters and API-specific parameters. Common parameters include information such as the API version and identity verification. For more information, see Common parameters.

The following example shows how to call the GetPredictResult operation to retrieve a model prediction result:
Note Note: The examples in this document are formatted for readability.
https://nlp-automl.cn-hangzhou.aliyuncs.com/?Action=GetPredictResult
&Format=xml
&Version=2019-11-11
&Signature=xxxx%xxxx%3D
&SignatureMethod=HMAC-SHA1
&SignatureNonce=15215528852396
&SignatureVersion=1.0
&AccessKeyId=key-test
&TimeStamp=2012-06-01T12:00:00Z
…