Skip to content

Commit 153bb86

Browse files
Rohit MishraRohit Mishra
authored andcommitted
updated in config file
1 parent 07966c1 commit 153bb86

2 files changed

Lines changed: 4 additions & 12 deletions

File tree

examples/index.php

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,16 @@
1212
use Contentstack\Contentstack;
1313
include_once "../src/index.php";
1414

15-
$stack = Contentstack::Stack('<API-KEY>', '<ACCESS-TOKEN>', '<DEVELOPMENT>');
15+
$stack = Contentstack::Stack('<API-KEY>', '<ACCESS-TOKEN>', '<ENVIRONMENT>');
1616

1717
try {
1818
//$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();
2020
//$result = $stack->ContentType('ctwithallfields')->Query()->includeCount('include_dimensions', true)->toJSON()->find();
2121
//$result = $stack->ContentType('ctwithallfields')->Entry('blt8d1ab7600ba4c2b4')->addParam('include_dimensions', true)->toJSON()->fetch();
2222

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));
3225

3326

3427
} catch(Exception $e) {

src/lib/utility.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,6 @@ function wrapResult($result = '', $queryObject = '') {
256256
function contentstackRequest($queryObject = '', $type = ''){
257257
$server_output = '';
258258
if($queryObject) {
259-
\Contentstack\Utility\debug(contentstackUrl($queryObject, $type));
260259
$http = curl_init(contentstackUrl($queryObject, $type));
261260

262261
// setting the GET request

0 commit comments

Comments
 (0)