This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl https://046a1a87-api.agilitycms.cloud/fetch/en-us/item/28 | |
| --header "APIKey: defaultlive.2b7f3a91559d794bedb688358be5e13af2b1e3ae8cd39e8ed2433bbef5d8d6ac" | |
| { | |
| "contentID": 28, | |
| "properties": { | |
| "state": 2, | |
| "modified": "2019-08-16T15:49:56.583", | |
| "versionID": 173, | |
| "referenceName": "dodgeblocklandingpage", | |
| "definitionName": "LandingPage", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl https://046a1a87-api.agilitycms.cloud/fetch/en-us/item/15?contentLinkDepth=1 | |
| --header "APIKey: defaultlive.2b7f3a91559d794bedb688358be5e13af2b1e3ae8cd39e8ed2433bbef5d8d6ac" | |
| { | |
| "contentID": 15, | |
| "properties": { | |
| "state": 2, | |
| "modified": "2019-08-15T16:22:34.45", | |
| "versionID": 165, | |
| "referenceName": "posts", | |
| "definitionName": "Post", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import agility from '@agility/content-fetch' | |
| const api = agility.getApi({ | |
| guid: '046a1a87', | |
| apiKey: 'defaultlive.2b7f3a91559d794bedb688358be5e13af2b1e3ae8cd39e8ed2433bbef5d8d6ac', | |
| isPreview: false | |
| }); | |
| //use async to write cleaner code | |
| let contentListResult = await api.getContentList({ referenceName: 'posts', languageCode: 'en-us' }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl https://046a1a87-api.agilitycms.cloud/fetch/en-us/list/posts | |
| --header "APIKey: defaultlive.2b7f3a91559d794bedb688358be5e13af2b1e3ae8cd39e8ed2433bbef5d8d6ac" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "items": [ | |
| { | |
| "contentID": 15, | |
| "properties": { | |
| "state": 2, | |
| "modified": "2019-07-18T13:16:41.033", | |
| "versionID": 105, | |
| "referenceName": "posts", | |
| "definitionName": "Post", |