openapi-sdk-php
openapi-sdk-php copied to clipboard
nlp调用一直返回 SignatureDoesNotMatch: Specified signature is not matched with our calculation
- PHP Version:7.4.3
- Platform:wsl
- Product:nlp
- Product Version:SignatureDoesNotMatch: Specified signature is not matched with our calculation
- API:
AlibabaCloud::accessKeyClient($this->accessKeyId, $this->accessKeySecret)
->regionId('cn-hangzhou')
->asDefaultClient();
$res = AlibabaCloud::rpc()
->host('alinlp.cn-hangzhou.aliyuncs.com')
->product('Nlp')
->action('GetWsChGeneral')
->format('JSON')
->method('POST')
->scheme('https')
->options([
'query' => [
'ServiceCode' => 'alinlp',
'Text' => $text,
'TokenizerId' => 'GENERAL_CHN',
'OutType' => '1',
'Version' => '2020-06-29',
]
])->request();