Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.2.5 #17

Merged
merged 2 commits into from
Apr 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://agility.visualstudio.com/Agility CMS/_apis/build/status/Agility%20Content%20Fetch%20JS%20SDK%20-%20Dev?branchName=dev)](https://agility.visualstudio.com/Agility CMS/_build/latest?definitionId=58&branchName=dev)
[![Build Status](https://agility.visualstudio.com/Agility%20CMS/_apis/build/status/Agility%20Content%20Fetch%20JS%20SDK%20-%20Dev?branchName=dev)](https://agility.visualstudio.com/Agility%20CMS/_build/latest?definitionId=58&branchName=dev)
[![Netlify Status](https://api.netlify.com/api/v1/badges/c45f5d6e-923b-4019-820e-826e6185017d/deploy-status)](https://app.netlify.com/sites/agilitydocs/deploys)

# Agility Content Fetch JS SDK
Expand Down Expand Up @@ -40,8 +40,8 @@ import agility from '@agility/content-fetch'

//initialize the api client
const api = agility.getApi({
instanceID: '1234-1234',
accessToken: 'fEpTcRnWO3EahHbojDCeY3PwGwAzpw2gveDuPn2l0nuqFbQYVcWrQ+a3/DHcWgCgn7UL2tgbSOS0AqrEOiXkTg=='
instanceID: '191309ca-e675-4be2-bb29-351879528707',
accessToken: 'aGd13M.fa30c36e553a36f871860407e902da9a7375322457acd6bcda038e60af699411'
});

//make the request: get a content item with the ID '22'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@agility/content-fetch",
"version": "0.2.4",
"version": "0.2.5",
"description": "JavaScript library for the Agility Fetch API (node and browser)",
"main": "dist/agility-content-fetch.node.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/content-fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ import { isHttps } from './utils'
* import agility from '@agility/content-fetch'
*
* const api = agility.getApi({
* instanceID: '1234-1234',
* accessToken: 'fEpTcRnWO3EahHbojDCeY3PwGwAzpw2gveDuPn2l0nuqFbQYVcWrQ+a3/DHcWgCgn7UL2tgbSOS0AqrEOiXkTg==',
* instanceID: '191309ca-e675-4be2-bb29-351879528707',
* accessToken: 'aGd13M.fa30c36e553a36f871860407e902da9a7375322457acd6bcda038e60af699411',
* isPreview: false
* });
*/
Expand Down
4 changes: 2 additions & 2 deletions src/methods/getContentItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import { buildRequestUrlPath, buildAuthHeader } from '../utils'
* import agility from '@agility/content-fetch'
*
* const api = agility.getApi({
* instanceID: '1234-1234',
* accessToken: 'fEpTcRnWO3EahHbojDCeY3PwGwAzpw2gveDuPn2l0nuqFbQYVcWrQ+a3/DHcWgCgn7UL2tgbSOS0AqrEOiXkTg==',
* instanceID: '191309ca-e675-4be2-bb29-351879528707',
* accessToken: 'aGd13M.fa30c36e553a36f871860407e902da9a7375322457acd6bcda038e60af699411',
* });
*
* api.getContentItem({
Expand Down
4 changes: 2 additions & 2 deletions src/methods/getContentList.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import { buildRequestUrlPath, buildAuthHeader } from '../utils'
* import agility from '@agility/content-fetch'
*
* const api = agility.getApi({
* instanceID: '1234-1234',
* accessToken: 'fEpTcRnWO3EahHbojDCeY3PwGwAzpw2gveDuPn2l0nuqFbQYVcWrQ+a3/DHcWgCgn7UL2tgbSOS0AqrEOiXkTg=='
* instanceID: '191309ca-e675-4be2-bb29-351879528707',
* accessToken: 'aGd13M.fa30c36e553a36f871860407e902da9a7375322457acd6bcda038e60af699411',
* });
*
* api.getContentList({
Expand Down
6 changes: 3 additions & 3 deletions src/methods/getPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import { buildRequestUrlPath, buildAuthHeader } from '../utils'
*
* import agility from '@agility/content-fetch'
*
* var api = agility.getApi({
* instanceID: '1234-1234',
* accessToken: 'fEpTcRnWO3EahHbojDCeY3PwGwAzpw2gveDuPn2l0nuqFbQYVcWrQ+a3/DHcWgCgn7UL2tgbSOS0AqrEOiXkTg=='
* const api = agility.getApi({
* instanceID: '191309ca-e675-4be2-bb29-351879528707',
* accessToken: 'aGd13M.fa30c36e553a36f871860407e902da9a7375322457acd6bcda038e60af699411',
* });
*
* api.getPage({
Expand Down
6 changes: 3 additions & 3 deletions src/methods/getSitemapFlat.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import { buildRequestUrlPath, buildAuthHeader } from '../utils'
*
* import agility from '@agility/content-fetch'
*
* var api = agility.getApi({
* instanceID: '1234-1234',
* accessToken: 'fEpTcRnWO3EahHbojDCeY3PwGwAzpw2gveDuPn2l0nuqFbQYVcWrQ+a3/DHcWgCgn7UL2tgbSOS0AqrEOiXkTg=='
* const api = agility.getApi({
* instanceID: '191309ca-e675-4be2-bb29-351879528707',
* accessToken: 'aGd13M.fa30c36e553a36f871860407e902da9a7375322457acd6bcda038e60af699411',
* });
*
* api.getSitemapFlat({
Expand Down
6 changes: 3 additions & 3 deletions src/methods/getSitemapNested.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import { buildRequestUrlPath, buildAuthHeader } from '../utils'
*
* import agility from '@agility/content-fetch'
*
* var api = agility.getApi({
* instanceID: '1234-1234',
* accessToken: 'fEpTcRnWO3EahHbojDCeY3PwGwAzpw2gveDuPn2l0nuqFbQYVcWrQ+a3/DHcWgCgn7UL2tgbSOS0AqrEOiXkTg=='
* const api = agility.getApi({
* instanceID: '191309ca-e675-4be2-bb29-351879528707',
* accessToken: 'aGd13M.fa30c36e553a36f871860407e902da9a7375322457acd6bcda038e60af699411',
* });
*
* api.getSitemapNested({
Expand Down
4 changes: 2 additions & 2 deletions test/apiClients.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import agility from '../src/content-fetch'

//Agiliy Instance = 'Headless Integration Testing'
const instanceID = 'c741222b-1080-45f6-9a7f-982381c5a485';
const accessTokenFetch = 'E3JaVBdQbowZWntXsvvObLyjZ82eCB/pmVGjVy8q5NVD0/6t28E/4nShCBzGT2uqleIYBXrW8F81IdKrdATZ3Q==';
const accessTokenPreview = 'hA9e0rki2BpchWXmcUkrjMcH8dQRgg7uqmRBwMviCcE5cvHSQU8ngP3+OwGO6d22bDbFpa8asJdKH8AwC9W7iw==';
const accessTokenFetch = 'mn16Ui.17dc2f94908b113a6eb0869681f5cfa77df6dbd181d22943b64bf8ef728b6c5c';
const accessTokenPreview = 'tR95Pt.cc81dfbe0726263d5d9618b21f49fe33830e5449395820ade1cad3ce89d22ed8';

function createApiClient() {
var api = agility.getApi({
Expand Down