You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/methods/getSitemapFlat.js
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ import utils from '../utils'
4
4
* The sitemap, returned in a flat list, where the dictionary key is the page path. This method is ideal for page routing.
5
5
* @memberof AgilityFetch.Client
6
6
* @param {Object} requestParams - The parameters for the API request.
7
-
* @param {number} requestParams.channelID - The channelID of the sitemap to return. If you only have one channel, your channelID is likely *1*.
7
+
* @param {number} requestParams.channelName - The reference name of the digital channel of the sitemap to return. If you only have one channel, your channel reference name is likely *website*.
8
8
* @returns {Promise<AgilityFetch.Types.SitemapFlat>} - The sitemap response in a flat format.
9
9
* @example
10
10
*
@@ -17,7 +17,7 @@ import utils from '../utils'
17
17
* });
18
18
*
19
19
* api.getSitemapFlat({
20
-
* channelID: 1
20
+
* channelName: 'website'
21
21
* })
22
22
* .then(function(sitemap) {
23
23
* console.log(sitemap);
@@ -32,8 +32,7 @@ function getSitemapFlat(requestParams) {
Copy file name to clipboardExpand all lines: src/methods/getSitemapNested.js
+5-7Lines changed: 5 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ import utils from '../utils'
4
4
* Gets the sitemap as an array in a nested format, ideal for generating menus.
5
5
* @memberof AgilityFetch.Client
6
6
* @param {Object} requestParams - The parameters for the API request.
7
-
* @param {number} requestParams.channelID - The channelID of the sitemap to return. If you only have one channel, your channelID is likely *1*.
7
+
* @param {number} requestParams.channelName - The reference name of the digital channel of the sitemap to return. If you only have one channel, your channel reference name is likely *website*.
8
8
* @returns {Promise<AgilityFetch.Types.SitemapNested>} - The array of sitemap items returned.
9
9
* @example
10
10
*
@@ -17,7 +17,7 @@ import utils from '../utils'
17
17
* });
18
18
*
19
19
* api.getSitemapNested({
20
-
* channelID: 1
20
+
* channelName: 'website'
21
21
* })
22
22
* .then(function(sitemap) {
23
23
* console.log(sitemap);
@@ -32,9 +32,7 @@ function getSitemapNested(requestParams) {
0 commit comments