硕顺crm后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
545 B

<?php
$app = require __DIR__ . '/app.php';
/** @var \WeWork\Api\Batch $batch */
$batch = $app->get('batch');
try {
$batch->invite([
'user' => ['UserID1', 'UserID2', 'UserID3']
]);
} catch (Exception $e) {
}
try {
$batch->syncUser(['media_id' => 'xxxxxx']);
} catch (Exception $e) {
}
try {
$batch->replaceUser(['media_id' => 'xxxxxx']);
} catch (Exception $e) {
}
try {
$batch->replaceParty(['media_id' => 'xxxxxx']);
} catch (Exception $e) {
}
try {
$batch->getResult('JOBID');
} catch (Exception $e) {
}