Skip to content

Commit 5206137

Browse files
Merge pull request #12 from contentstack/asset_query
Asset Query function issue resolve
2 parents bad8765 + 4c5045d commit 5206137

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+2116
-1263
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
.idea/
33
composer.phar
44
composer.lock
5-
composer.json
65
vendor/
76
test/report.html
87
test/AssetsTestReport.html
@@ -12,4 +11,5 @@ test/Entryreport.html
1211
test/Entriesreport.html
1312
test/ImageTransformreport.html
1413
test/result.json
15-
examples/index.php
14+
examples/index.php
15+
.DS_Store

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ To use the PHP SDK, you need to perform the following steps:
1818
1. Download/clone the PHP SDK from [here](https://www.contentstack.com/docs/platforms/php/php_sdk_latest).
1919
2. Paste the downloaded ZIP file of the PHP SDK to a folder of your choice.
2020

21-
To initialize the SDK, you will need to specify the API Key, Access Token, and Environment Name of your stack.
21+
To initialize the SDK, you will need to specify the API Key, Delivery Token, and Environment Name of your stack.
2222

2323
use Contentstack\Contentstack;include_once "contentstack/index.php";
24-
$stack = Contentstack::Stack(API_KEY, ACCESS_TOKEN, ENV_NAME);
24+
$stack = Contentstack::Stack(API_KEY, DELIVERY_TOKEN, ENV_NAME);
2525

2626
### Key Concepts for using Contentstack
2727

@@ -55,9 +55,9 @@ A publishing environment corresponds to one or more deployment servers or a cont
5555
To initialize the SDK, you need to provide values for the keys given in the snippet below:
5656

5757
use Contentstack\Contentstack;include_once "contentstack/index.php";
58-
$stack = Contentstack::Stack(API_KEY, ACCESS_TOKEN, ENV_NAME);
58+
$stack = Contentstack::Stack(API_KEY, DELIVERY_TOKEN, ENV_NAME);
5959

60-
To get the API credentials mentioned above, log in to your Contentstack account and then in your top panel navigation, go to Settings > Stack to view the API Key and Access Token.
60+
To get the API credentials mentioned above, log in to your Contentstack account and then in your top panel navigation, go to Settings > Stack to view the API Key and Delivery Token.
6161

6262

6363

api_reference/.DS_Store

-6 KB
Binary file not shown.

api_reference/.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,15 @@
1515
<meta name="MobileOptimized" content="width">
1616
<meta name="HandheldFriendly" content="true">
1717
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
18-
18+
<link rel="shortcut icon" href="./favicon.ico">
19+
<!-- Google Tag Manager -->
20+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
21+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
22+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
23+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
24+
})(window,document,'script','dataLayer','GTM-WGP99J7');</script>
25+
<!-- End Google Tag Manager -->
26+
1927

2028
</head>
2129

api_reference/Contentstack.html

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,23 @@
1616
<meta name="MobileOptimized" content="width">
1717
<meta name="HandheldFriendly" content="true">
1818
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
19-
<!-- Google Tag Manager -->
20-
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
21-
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
22-
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
23-
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
24-
})(window,document,'script','dataLayer','GTM-WGP99J7');</script>
25-
<!-- End Google Tag Manager -->
26-
19+
<link rel="shortcut icon" href="./favicon.ico">
20+
<!-- Google Tag Manager -->
21+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
22+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
23+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
24+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
25+
})(window,document,'script','dataLayer','GTM-WGP99J7');</script>
26+
<!-- End Google Tag Manager -->
27+
2728

2829
</head>
2930

3031
<body id="namespace" data-name="namespace:Contentstack" data-root-path="">
31-
<!-- Google Tag Manager (noscript) -->
32-
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WGP99J7" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
33-
<!-- End Google Tag Manager (noscript) -->
34-
<div id="content">
32+
<!-- Google Tag Manager (noscript) -->
33+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WGP99J7" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
34+
<!-- End Google Tag Manager (noscript) -->
35+
<div id="content">
3536
<div id="left-column">
3637
<div id="control-panel">
3738
<script>

api_reference/Contentstack/Contentstack.html

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,20 @@
1616
<meta name="MobileOptimized" content="width">
1717
<meta name="HandheldFriendly" content="true">
1818
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
19-
<!-- Google Tag Manager -->
20-
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
21-
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
22-
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
23-
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
24-
})(window,document,'script','dataLayer','GTM-WGP99J7');</script>
25-
<!-- End Google Tag Manager -->
26-
19+
<link rel="shortcut icon" href="./favicon.ico">
20+
<!-- Google Tag Manager -->
21+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
22+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
23+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
24+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
25+
})(window,document,'script','dataLayer','GTM-WGP99J7');</script>
26+
<!-- End Google Tag Manager -->
27+
2728

2829
</head>
2930

3031
<body id="class" data-name="class:Contentstack_Contentstack" data-root-path="../">
31-
<!-- Google Tag Manager (noscript) -->
32-
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WGP99J7" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
33-
<!-- End Google Tag Manager (noscript) -->
34-
<div id="content">
32+
<div id="content">
3533
<div id="left-column">
3634
<div id="control-panel">
3735
<script>

api_reference/Contentstack/Error.html

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,23 @@
1616
<meta name="MobileOptimized" content="width">
1717
<meta name="HandheldFriendly" content="true">
1818
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
19-
<!-- Google Tag Manager -->
20-
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
21-
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
22-
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
23-
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
24-
})(window,document,'script','dataLayer','GTM-WGP99J7');</script>
25-
<!-- End Google Tag Manager -->
26-
19+
<link rel="shortcut icon" href="./favicon.ico">
20+
<!-- Google Tag Manager -->
21+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
22+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
23+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
24+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
25+
})(window,document,'script','dataLayer','GTM-WGP99J7');</script>
26+
<!-- End Google Tag Manager -->
27+
2728

2829
</head>
2930

3031
<body id="namespace" data-name="namespace:Contentstack_Error" data-root-path="../">
31-
<!-- Google Tag Manager (noscript) -->
32+
<!-- Google Tag Manager (noscript) -->
3233
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WGP99J7" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
3334
<!-- End Google Tag Manager (noscript) -->
34-
<div id="content">
35+
<div id="content">
3536
<div id="left-column">
3637
<div id="control-panel">
3738
<script>

api_reference/Contentstack/Error/CSException.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<meta name="MobileOptimized" content="width">
1717
<meta name="HandheldFriendly" content="true">
1818
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
19+
<link rel="shortcut icon" href="./favicon.ico">
1920
<!-- Google Tag Manager -->
2021
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
2122
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
@@ -27,10 +28,10 @@
2728
</head>
2829

2930
<body id="class" data-name="class:Contentstack_Error_CSException" data-root-path="../../">
30-
<!-- Google Tag Manager (noscript) -->
31+
<!-- Google Tag Manager (noscript) -->
3132
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WGP99J7" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
3233
<!-- End Google Tag Manager (noscript) -->
33-
<div id="content">
34+
<div id="content">
3435
<div id="left-column">
3536
<div id="control-panel">
3637
<script>

api_reference/Contentstack/Result.html

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,23 @@
1616
<meta name="MobileOptimized" content="width">
1717
<meta name="HandheldFriendly" content="true">
1818
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
19-
<!-- Google Tag Manager -->
20-
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
21-
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
22-
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
23-
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
24-
})(window,document,'script','dataLayer','GTM-WGP99J7');</script>
25-
<!-- End Google Tag Manager -->
26-
19+
<link rel="shortcut icon" href="./favicon.ico">
20+
<!-- Google Tag Manager -->
21+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
22+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
23+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
24+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
25+
})(window,document,'script','dataLayer','GTM-WGP99J7');</script>
26+
<!-- End Google Tag Manager -->
27+
2728

2829
</head>
2930

3031
<body id="namespace" data-name="namespace:Contentstack_Result" data-root-path="../">
31-
<!-- Google Tag Manager (noscript) -->
32+
<!-- Google Tag Manager (noscript) -->
3233
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WGP99J7" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
3334
<!-- End Google Tag Manager (noscript) -->
34-
<div id="content">
35+
<div id="content">
3536
<div id="left-column">
3637
<div id="control-panel">
3738
<script>

api_reference/Contentstack/Result/Result.html

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,23 @@
1616
<meta name="MobileOptimized" content="width">
1717
<meta name="HandheldFriendly" content="true">
1818
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
19-
<!-- Google Tag Manager -->
20-
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
21-
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
22-
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
23-
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
24-
})(window,document,'script','dataLayer','GTM-WGP99J7');</script>
25-
<!-- End Google Tag Manager -->
26-
19+
<link rel="shortcut icon" href="./favicon.ico">
20+
<!-- Google Tag Manager -->
21+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
22+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
23+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
24+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
25+
})(window,document,'script','dataLayer','GTM-WGP99J7');</script>
26+
<!-- End Google Tag Manager -->
27+
2728

2829
</head>
2930

3031
<body id="class" data-name="class:Contentstack_Result_Result" data-root-path="../../">
31-
<!-- Google Tag Manager (noscript) -->
32-
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WGP99J7" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
33-
<!-- End Google Tag Manager (noscript) -->
34-
<div id="content">
32+
<!-- Google Tag Manager (noscript) -->
33+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WGP99J7" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
34+
<!-- End Google Tag Manager (noscript) -->
35+
<div id="content">
3536
<div id="left-column">
3637
<div id="control-panel">
3738
<script>

0 commit comments

Comments
 (0)