Skip to content

Instantly share code, notes, and snippets.

@rodionchernyshov
Last active March 29, 2018 18:25
Show Gist options
  • Save rodionchernyshov/df73d5f4df8538d0d85f7dab42f56152 to your computer and use it in GitHub Desktop.
Save rodionchernyshov/df73d5f4df8538d0d85f7dab42f56152 to your computer and use it in GitHub Desktop.
<?php
require_once 'vendor/autoload.php';
define('API_URL', 'https://app.qordoba.com/api');
$translationDocument = new Qordoba\Document(
API_URL,
'login',
'password',
0000,
0000
);
$translationDocument->getProject()->check('Landmark-Group');
/*** Response
["fr-fr"]=>
object(stdClass)#310 (2) {
["pages"]=>
array(2) {
[0]=>
object(stdClass)#291 (18) {
["id"]=>
int(1212212)
["page_id"]=>
int(980826)
["type"]=>
string(4) "page"
["enabled"]=>
bool(true)
["published"]=>
bool(false)
["completed"]=>
bool(true)
["url"]=>
string(19) "Landmark-Group.json"
["live_updates"]=>
bool(false)
["pre_translate"]=>
bool(false)
["segment_count"]=>
int(4)
["update"]=>
int(1522321057000)
["created_at"]=>
int(1522321057000)
["preparing"]=>
bool(false)
["deleted"]=>
bool(false)
["version_tag"]=>
string(17) "updated_version_2"
["original_location"]=>
bool(true)
["page_folder_path"]=>
string(19) "Landmark-Group.json"
["tags"]=>
array(0) {
}
**/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment