This topic describes the principle that you must follow when you use Intelligent Media Management (IMM) SDK.
Request-response principle
When you use IMM SDKs for different programming languages to call API operations, you must follow the request-response principle. Perform the following steps to call API operations:
Specify request parameters to create a request object.
Use the request object to call an API operation in the SDK.
The request results are returned as a response object.
Example
The following sample code provides an example on how to use IMM SDK for Python V1.27.4 to call an API operation.
get_project_request = imm_20200930_models.GetProjectRequest()
runtime = util_models.RuntimeOptions()
response = client.get_project_with_options(get_project_request, runtime)
# Print the return value of the API operation.
print(response.body.to_map())