lafourchette/talend-php-sdk

语言: PHP

git: https://github.com/lafourchette/talend-php-sdk

README.md (中文)

拓蓝的PHP-SDK

信息

Talend管理员服务器API的客户端

文档Talend管理员服务器API: https://help.talend.com/display/TalendPlatformUniversalStudioUserGuide54EN/G.3.4+Configuring+the+components

带有上下文参数的runTask: https://help.talend.com/display/TalendAdministrationCenterUserGuide54EN/B.5.2+Executing+a+task+with+context+parameters+using+metaServlet

示例:

1)方法runTask

<?php
use LaFourchette\Talend\TalendClient;

$client = TalendClient::factory(array(
    'base_url'    => 'http://talend.url/org.talend.administrator/metaServlet',
    'login'       => 'login',
    'password'    => 'password',
));

$client->runTask(17);

方法runTask带有context参数

<?php
use LaFourchette\Talend\TalendClient;

$client = TalendClient::factory(array(
    'base_url'    => 'http://talend.url/org.talend.administrator/metaServlet',
    'login'       => 'login',
    'password'    => 'password',
    'context'     => array('ids_customer' => '1,2,3')
));

$client->runTask(17);

2)方法listTasks

use LaFourchette\Talend\TalendClient;

$client = TalendClient::factory(array(
    'base_url'    => 'http://talend.url/org.talend.administrator/metaServlet',
    'login'       => 'login',
    'password'    => 'password',
));

$client->listTasks();

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

talend-php-sdk Build Status Scrutinizer Code Quality Code Coverage

Informations

Client for Talend administrator server API

Documentation Talend administrator server API :
https://help.talend.com/display/TalendPlatformUniversalStudioUserGuide54EN/G.3.4+Configuring+the+components

runTask with a context parameter :
https://help.talend.com/display/TalendAdministrationCenterUserGuide54EN/B.5.2+Executing+a+task+with+context+parameters+using+metaServlet

Example :

1) Method runTask

<?php
use LaFourchette\Talend\TalendClient;

$client = TalendClient::factory(array(
    'base_url'    => 'http://talend.url/org.talend.administrator/metaServlet',
    'login'       => 'login',
    'password'    => 'password',
));

$client->runTask(17);

Method runTask with a context parameter

<?php
use LaFourchette\Talend\TalendClient;

$client = TalendClient::factory(array(
    'base_url'    => 'http://talend.url/org.talend.administrator/metaServlet',
    'login'       => 'login',
    'password'    => 'password',
    'context'     => array('ids_customer' => '1,2,3')
));

$client->runTask(17);

2) Method listTasks

use LaFourchette\Talend\TalendClient;

$client = TalendClient::factory(array(
    'base_url'    => 'http://talend.url/org.talend.administrator/metaServlet',
    'login'       => 'login',
    'password'    => 'password',
));

$client->listTasks();