-
Notifications
You must be signed in to change notification settings - Fork 1
/
cli-test.php
55 lines (46 loc) · 930 Bytes
/
cli-test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
* Test script
*/
if (php_sapi_name() !== 'cli') {
exit(0);
}
require __DIR__ . '/vendor/autoload.php';
$test_realm = '';
$test_user_token = '';
$test_table = '';
$test_app = '';
$quickbase = new \Eskrano\QuickbaseRest\QuickbaseREST($test_realm, $test_user_token);
/*$resp = $quickbase->query('GET', 'tables', [], [
'appId' => $test_app
]);*/
/*$resp = $quickbase->records()->query(
'dbid',
"{'3'.EX.'29'}"
);*/
/*$resp = $quickbase->records()->editRecords(
$test_table,
[
1 => [
6 => 'Test 3',
],
2 => [
6 => 'Test !'
],
]
);*/
/*
$resp = $quickbase->records()->addRecords(
$test_table,
[
[
6 => '444 Test',
7 => 74,
],
]
);*/
/*
$resp = $quickbase->records()->deleteRecords(
$test_table,
"{'6'.CT.'Test'}"
);*/