Code Monkey home page Code Monkey logo

Comments (6)

hedeqiang avatar hedeqiang commented on May 26, 2024

另外 如下代码 二次调用请求 返回 image library

$body = [
            'ServiceModule' => 'open_api',
            'Name' => 'test',
            'ResourceType' => 'TEXT',
            'Category' => 'BLACK',
            'LibType' => 'textKeyword',
];
$body = json_encode($body);
return \AlibabaCloud\Green\Green::v20180509()->addSimilarityLibrary()->body($body)->request()->toArray();

image

from openapi-sdk-php.

hedeqiang avatar hedeqiang commented on May 26, 2024

是不是我的姿势不对,好想没有添加文本的方式 https://help.aliyun.com/document_detail/106534.html?spm=a2c4g.11186623.6.709.32f51886N7ebKR

from openapi-sdk-php.

 avatar commented on May 26, 2024
  • PHP Version: PHP 7.3.21-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Aug 7 2020 14:44:10) ( NTS )
  • Platform: Linux d0aa2e73b694 4.19.76-linuxkit #1 SMP Tue May 26 11:42:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
  • Product: Green
  • Product Version: 20180509
  • API: getSimilarityLibrary addSimilarityLibrary

您好,我想问下,内容安全 SDK ,创建自定义文本库。是否是 getSimilarityLibrary() 方法。我通过此方法返回状态码 200 , 但是云盾控制台似乎没有?还是说,通过接口创建的文本库在控制台看不到?

另外,我通过 getSimilarityLibrary 获取报错。

$body = [
            'ServiceModule' => 'open_api'
        ];
$body = json_encode($body);
return \AlibabaCloud\Green\Green::v20180509()->getSimilarityLibrary()->body($body)->request()->toArray();

image

这时报错,参数不符合要求。

from openapi-sdk-php.

 avatar commented on May 26, 2024

另外 如下代码 二次调用请求 返回 image library

$body = [
            'ServiceModule' => 'open_api',
            'Name' => 'test',
            'ResourceType' => 'TEXT',
            'Category' => 'BLACK',
            'LibType' => 'textKeyword',
];
$body = json_encode($body);
return \AlibabaCloud\Green\Green::v20180509()->addSimilarityLibrary()->body($body)->request()->toArray();

image

name 重复了

from openapi-sdk-php.

hedeqiang avatar hedeqiang commented on May 26, 2024

其实想确定下 v20180509() 接口 关于自定义文本库的都是那几个接口,

from openapi-sdk-php.

 avatar commented on May 26, 2024

其实想确定下 v20180509() 接口 关于自定义文本库的都是那几个接口,

我们的SDK都是自动生成的,如果想确定用途,建议查阅产品文档找到对应的API,再进行调用,如果查阅不清晰,可提交工单。

from openapi-sdk-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.