Queries service methods.

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 headers

This operation only uses the common request header. For more information, see Common request parameters.

Request syntax

GET /pop/v5/service/list_methods HTTP/1.1

Request parameters

Parameter Type Required Example Description
AppId String Yes test

The ID of the application.

ServiceName String Yes testMethod

The name of the service.

Response parameters

Parameter Type Example Description
Code Integer 200

The returned code.

Message String success

The returned message.

RequestId String test

The ID of the request.

ServiceMethodList

The list of service methods returned.

ServiceMethod

The method of service returned.

AppName String Apptest

The name of the application.

InputParams test

The list of the input parameters of the service method.

InputParam

The input parameter of the service method.

MethodName String TestMethod

The name of the service method.

Output String 2

The return type of the service method.

ParamTypes 3

The types of the input parameters of the service method.

ParamType

The type of the input parameter of the service method.

ServiceName String TestService

The name of the service.

Examples

Sample requests

GET /pop/v5/service/list_methods HTTP/1.1
Common request parameters
{
  "AppId": "test"
  "ServiceName": "testMethod"
}

Sample success responses

XML format

<Message>success</Message>
<ServiceMethodList>
</ServiceMethodList>
<Code>200</Code>

JSON format

{
	"Message":"success",
	"ServiceMethodList":{
		"ServiceMethod":[]
	},
	"Code":200
}

Error codes

For a list of error codes, visit the API Error Center.