Call an api which is opened by Baidu, file upload apis should not
be called by this interface.
public api ( string $uri, array $params = [], string $httpMethod = 'GET', string $type = 'rest' ) : array | false | ||
$uri | string | Uri for the api, it could be the whole url, like 'https://openapi.baidu.com/rest/2.0/passport/user/info/get', or url path only, like '/rest/2.0/passport/user/info/get', or just api method only, like 'passport/user/info/get'. |
$params | array | Api specific parameters. |
$httpMethod | string | Http method, could be 'GET' or 'POST'. |
$type | string | Type name of the openapi, could be 'rest', or 'public'. |
return | array | false | Returns an array if success, or false if failed. |