|
12 | 12 | use Contentstack\Contentstack; |
13 | 13 | include_once "../src/index.php"; |
14 | 14 |
|
15 | | - $stack = Contentstack::Stack('<API-KEY>', '<ACCESS-TOKEN>', '<DEVELOPMENT>'); |
| 15 | + $stack = Contentstack::Stack('<API-KEY>', '<ACCESS-TOKEN>', '<ENVIRONMENT>'); |
16 | 16 |
|
17 | 17 | try { |
18 | 18 | //$result = $stack->ContentType('ctwithallfields')->Query()->addParam('include_dimensions', 'true')->toJSON()->find(); |
19 | | - // $result = $stack->ContentType('ctwithallfields')->Query()->addParam('include_dimensions', true)->toJSON()->find(); |
| 19 | + //$result = $stack->ContentType('ctwithallfields')->Query()->addParam('include_dimension', 'true')->toJSON()->find(); |
20 | 20 | //$result = $stack->ContentType('ctwithallfields')->Query()->includeCount('include_dimensions', true)->toJSON()->find(); |
21 | 21 | //$result = $stack->ContentType('ctwithallfields')->Entry('blt8d1ab7600ba4c2b4')->addParam('include_dimensions', true)->toJSON()->fetch(); |
22 | 22 |
|
23 | | - //$result = $stack->Assets('blt9b5825dd804a9067')->addParam('include_dimensions', true)->toJSON()->fetch(); |
24 | | - |
25 | | - // $result = $stack->ContentType('authors')->Query()->toJSON()->where('title', '')->find(); |
26 | | - //$result = $stack->ContentType('authors')->Entry('')->toJSON()->fetch(); |
27 | | - // \Contentstack\Utility\debug($result); |
28 | | - // $result = $stack->Assets('bltacacd77ce6c15c12')->fetch(); |
29 | | - // $data = $result->get('url'); |
30 | | - // $result = $stack->ImageTrasform($data, array('height'=> 100, 'weight'=> 100, 'disable' => 'upscale')); |
31 | | - // \Contentstack\Utility\debug($result); |
| 23 | + //$result = $stack->Assets('blt9b5825dd804a9067')->addParam('include_dimension', 'true')->toJSON()->fetch(); |
| 24 | + // \Contentstack\Utility\debug(($result)); |
32 | 25 |
|
33 | 26 |
|
34 | 27 | } catch(Exception $e) { |
|
0 commit comments