Namespace: items

.list.items

Methods

(static) checkIn(url) → {Promise}

Initiates a checkIn operation on the file located at the supplied URL.
Parameters:
Name Type Description
url string the URL of the file
Source:
Returns:
the promise of fulfilling the operation
Type
Promise
Example
sputils.list.items.checkIn('/pages/default.aspx')
  .then(function () { console.log('page was checked in') });

(static) checkOut(url) → {Promise}

Initiates a checkOut operation on the file located at the supplied URL.
Parameters:
Name Type Description
url string the URL of the file
Source:
Returns:
the promise of fulfilling the operation
Type
Promise
Example
sputils.list.items.checkOut('/pages/default.aspx')
  .then(function () { console.log('page was checked out') });