1. 创建AcsClient实例。
    $clientProfile = DefaultProfile::getProfile(
    $mps_region_id,                   # 您的 Region ID
    $access_key_id,                   # 您的 AccessKey ID
    $access_key_secret                # 您的 AccessKey Secret
    );
    $client = new DefaultAcsClient($clientProfile);
  2. 创建request,并设置参数。
    $request = new Mts\SubmitJobsRequest();
    $request->setAcceptFormat('JSON');
  3. 发起API请求并显示返回值。
    $response = $client->getAcsResponse($request);
    print 'PipelineName is:' . $response->{'PipelineList'}->{'Pipeline'}[0]->{'Name'} . "\n";
    print 'PipelineId is:' . $response->{'PipelineList'}->{'Pipeline'}[0]->{'Id'} . "\n";
完整代码
<?php
include_once 'aliyun-openapi-php-sdk/aliyun-php-sdk-core/Config.php';
use Mts\Request\V20140618 as Mts;
$access_key_id = 'xxx';
$access_key_secret = 'xxx';
$mps_region_ids = array('cn-hangzhou', 'cn-beijing', 'cn-shenzhen',
                            'cn-shanghai', 'cn-hongkong', 'us-west-1',
                            'ap-southeast-1', 'ap-northeast-1', 'eu-central-1',
                            'ap-south-1');
foreach ($mps_region_ids as $mps_region_id) {
    print 'region is:' . $mps_region_id . "\n";
    # 创建DefaultAcsClient实例并初始化
    $clientProfile = DefaultProfile::getProfile(
        $mps_region_id,                   # 您的 Region ID
        $access_key_id,                   # 您的 AccessKey ID
        $access_key_secret                # 您的 AccessKey Secret
    );
    $client = new DefaultAcsClient($clientProfile);
    # 创建API请求并设置参数
    $request = new Mts\SearchPipelineRequest();
    # 发起请求并处理返回
    try {
        $response = $client->getAcsResponse($request);
        print 'PipelineName is:' . $response->{'PipelineList'}->{'Pipeline'}[0]->{'Name'} . "\n";
        print 'PipelineId is:' . $response->{'PipelineList'}->{'Pipeline'}[0]->{'Id'} . "\n";
    } catch(ServerException $e) {
        print 'Error: ' . $e->getErrorCode() . ' Message: ' . $e->getMessage() . "\n";
    } catch(ClientException $e) {
        print 'Error: ' . $e->getErrorCode() . ' Message: ' . $e->getMessage() . "\n";
    }
}