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/content-fetch.js
+15-7Lines changed: 15 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -16,24 +16,29 @@
16
16
17
17
18
18
importcreateClientfrom'./api-client'
19
+
import{isHttps}from'./utils'
19
20
20
21
/**
21
-
* This is the description for create client
22
+
* How to create an instance of an an API client for the Agility Content Fetch REST API.
22
23
* @func
23
24
* @name getApi
24
25
* @memberof AgilityFetch
25
-
* @param {Object} config - API intialization params
26
+
* @param {Object} config - API intialization params.
26
27
* @param {string} config.instanceID - The guid that represents your instance.
27
28
* @param {string} config.accessToken - The secret token that represents your application.
28
29
* @param {boolean} [config.isPreview] - If your access token is for preview, then set this to true.
30
+
* @param {Object} [config.caching] - Optional Caching options. Caching is disabled by default.
31
+
* @param {number} [config.caching.maxAge] - In miliseconds. Default value is *0* (disabled). Recommeded value is *180000* (3 mins). Requests are cached in memory only (node or browser).
32
+
* @param {string} [config.baseUrl] - Optionally override the default API Base Url.
0 commit comments