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: lib/stack/deliveryToken/index.js
+18-1Lines changed: 18 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
import cloneDeep from 'lodash/cloneDeep'
2
2
import { create, update, deleteEntity, fetch, query } from '../../entity'
3
+
import { PreviewToken } from './previewToken'
3
4
4
5
/**
5
6
* Delivery tokens provide read-only access to the associated environments. Read more about <a href='https://www.contentstack.com/docs/developers/create-tokens/about-delivery-tokens'>DeliveryToken</a>.
@@ -59,6 +60,22 @@ export function DeliveryToken (http, data = {}) {
59
60
*
60
61
*/
61
62
this.fetch = fetch(http, 'token')
63
+
64
+
/**
65
+
* @description The Create a PreviewToken call creates a new previewToken in a particular stack of your Contentstack account.
66
+
* @memberof DeliveryToken
67
+
* @func previewToken
68
+
* @returns {PreviewToken} Instance of PreviewToken.
69
+
* @example
70
+
* import * as contentstack from '@contentstack/management'
import { create, deleteEntity } from '../../../entity'
3
+
4
+
/**
5
+
* Preview tokens provide read-only access to the associated environments. Read more about <a href='https://www.contentstack.com/docs/developers/create-tokens/about-preview-tokens'>PreviewToken</a>.
0 commit comments