2017 © Pedro Peláez
 

library wti-api

PHP Library to work with WebTranslateIt API

image

lingualeo/wti-api

PHP Library to work with WebTranslateIt API

  • Wednesday, December 16, 2015
  • by LinguaLeo
  • Repository
  • 23 Watchers
  • 6 Stars
  • 10,091 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 24 Versions
  • 2 % Grown

The README.md

PHP API for WebtranslateIt.com service

Installation:, (*1)

You can install this library using composer. Check https://packagist.org/packages/lingualeo/wti-api for instructions., (*2)

Usage:, (*3)

$apiKey = 'YOUR_API_KEY';
$api = new WtiApi($apiKey);

// Add translator to project with proofreader rights
// https://webtranslateit.com/en/docs/api/user/#create-user
$api->addUser('email@email.com', 'ru', true);

// Add manager to project with proofreader rights
// https://webtranslateit.com/en/docs/api/user/#create-user
$api->addUser('email@email.com', 'ru', true, 'manager');


// Search strings by key in file
// https://webtranslateit.com/en/docs/api/string/#list-string
$strings = $api->getStringsByKey('someKey', 'FILE_ID');

// Get Top Translators
// https://webtranslateit.com/en/docs/api/stats/#top-translators
$topTranslators = $api->getTopTranslators();

All implemented methods:, (*4)

getProjectInfo()

getProjectStatistics([$params])
getTopTranslators([$params])

addLocale($localeCode)
deleteLocale($localeCode)

getTranslation($stringId, $localeCode)
getStringsByKey($key, $fileId)
listStrings([$params, $page])
getStringId($key, $fileId)
addString($key, $value, $file[, $label, $locale, $type])
deleteString($stringId)
addTranslate($stringId, $locale, $value[, $status])
updateStringLabel($stringId, $label)

createFile($name, $filePath[, $mime])
updateFile($masterFileId, $localeCode, $name, $filePath[, $merge, $ignoreMissing, $minorChanges, $label, $mime])
createEmptyFile($filename[, $ext])
loadFile($fileId, $locale)
isMasterFileExists($masterFileId)
getFileIdByName($filename)

addUser($email, $locale, $proofread[, $role])
updateMembership($membershipId[, $params])
deleteFile($fileId)
listUsers([$params])
approveInvitation($invitationId[, $params])
removeInvitation($invitationId)
removeMembership($userId)

The Versions

16/12 2015

dev-master

9999999-dev

PHP Library to work with WebTranslateIt API

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Igor Lyubimov
by Alexander Mironov

04/06 2014

2.0.7

2.0.7.0

PHP Library to work with WebTranslateIt API

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Igor Lyubimov
by Alexander Mironov

18/04 2014

2.0.6

2.0.6.0

PHP Library to work with WebTranslateIt API

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Igor Lyubimov
by Alexander Mironov

17/04 2014

2.0.5

2.0.5.0

PHP Library to work with WebTranslateIt API

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Igor Lyubimov
by Alexander Mironov

04/04 2014

2.0.4

2.0.4.0

PHP Library to work with WebTranslateIt API

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Igor Lyubimov
by Alexander Mironov

05/03 2014

2.0.3

2.0.3.0

PHP Library to work with WebTranslateIt API

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Igor Lyubimov
by Alexander Mironov

13/02 2014

2.0.2

2.0.2.0

PHP Library to work with WebTranslateIt API

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Igor Lyubimov
by Alexander Mironov

12/02 2014

2.0.1

2.0.1.0

PHP Library to work with WebTranslateIt API

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Igor Lyubimov
by Alexander Mironov

12/02 2014

2.0

2.0.0.0

PHP Library to work with WebTranslateIt API

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Igor Lyubimov
by Alexander Mironov

27/01 2014

1.9.5

1.9.5.0

PHP Library to work with WebTranslateIt API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Igor Lyubimov
by Alexander Mironov

22/01 2014

1.9.4

1.9.4.0

PHP Library to work with WebTranslateIt API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Igor Lyubimov
by Alexander Mironov

20/01 2014

1.9.3

1.9.3.0

PHP Library to work with WebTranslateIt API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Igor Lyubimov
by Alexander Mironov

20/01 2014

1.9.2

1.9.2.0

PHP Library to work with WebTranslateIt API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Igor Lyubimov
by Alexander Mironov

15/01 2014

1.9.1

1.9.1.0

PHP Library to work with WebTranslateIt API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Igor Lyubimov
by Alexander Mironov

27/12 2013

1.9

1.9.0.0

PHP Library to work with WebTranslateIt API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Igor Lyubimov
by Alexander Mironov

25/12 2013

1.8

1.8.0.0

PHP Library to work with WebTranslateIt API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Igor Lyubimov
by Alexander Mironov

23/12 2013

1.7

1.7.0.0

PHP Library to work with WebTranslateIt API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Igor Lyubimov
by Alexander Mironov

10/12 2013

1.6

1.6.0.0

PHP Library to work with WebTranslateIt API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Igor Lyubimov
by Alexander Mironov

14/11 2013

1.5

1.5.0.0

PHP Library to work with WebTranslateIt API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Igor Lyubimov
by Alexander Mironov

11/11 2013

1.4

1.4.0.0

PHP Library to work with WebTranslateIt API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Igor Lyubimov
by Alexander Mironov

08/11 2013

1.3

1.3.0.0

PHP Library to work with WebTranslateIt API

  Sources   Download

by Igor Lyubimov
by Alexander Mironov

07/11 2013

1.2

1.2.0.0

PHP Library to work with WebTranslateIt API

  Sources   Download

by Igor Lyubimov
by Alexander Mironov

05/11 2013

1.1

1.1.0.0

Some methods to work with WebTranslateIt

  Sources   Download

by Igor Lyubimov

26/08 2013

1.0

1.0.0.0

Some methods to work with WebTranslateIt

  Sources   Download

by Igor Lyubimov