All Products
Search
Document Center

:GetOptionValueForProject

更新時間:May 13, 2024

Queries the option settings of an extension in a workspace.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter

Type

Required

Example

Description

Action

String

Yes

GetOptionValueForProject

The operation that you want to perform. Set the value to GetOptionValueForProject.

ExtensionCode

String

No

ce4*********086da5

The unique code of the extension.

ProjectId

String

No

234

The workspace ID.

Response parameters

Parameter

Type

Example

Description

RequestId

String

E6F0DBDD-5AD****

The request ID.

OptionValue

String

{"cuNumber":"0"}

The data returned. In the example, cuNumber is a custom key.

Examples

Sample requests

http(s)://[Endpoint]/?Action=GetOptionValueForProject
&ExtensionCode=ce4*********086da5
&ProjectId=234
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<GetOptionValueForProjectResponse>
    <RequestId>E6F0DBDD-5AD****</RequestId>
    <OptionValue>{"cuNumber":"0"}</OptionValue>
</GetOptionValueForProjectResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "E6F0DBDD-5AD****",
  "OptionValue" : "{\"cuNumber\":\"0\"}"
}

Error codes

For a list of error codes, see Service error codes.