Skip to content

PHP Web API for Teamwox Groupware by MetaQuotes

License

Notifications You must be signed in to change notification settings

abaranoff/tw-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tw-api

Image of Teamwox logo

tw-api is PHP Web API for Teamwox Groupware from MetaQuotes.

Usage:

$taskId = 1087;

$content = 'Test comment';

$logger        = new Logger('TeamWoxGate');
$streamHandler = new StreamHandler('logs/tw.log', Logger::INFO);
$logger->pushHandler($streamHandler);

$teamwox = new Gate([
    'sessionId' => uniqid(),
    'logger'   => $logger, 
    'baseUri'  => $config['baseUrl'],
    'login'    => $config['login'],
    'password' => $config['password']
]);

$teamwox->comment2task($taskId, $content,
    [[
        'contents' => 'hello',
        'filename' => 'filename1.txt'
    ], [
        'contents' => fopen(__FILE__, "r")
    ]]
);

See working example in examples/post.php.

Changelog:

v.0.1 Initial release.

  • Supports posting to Teamwox tasks and servicedesks as comments.
  • Supports attachments to posts

TEAMWOX is a trademark of METAQUOTES SOFTWARE CORP.

About

PHP Web API for Teamwox Groupware by MetaQuotes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages