SpRestLib

SpRestLib

  • Download
  • Get Started
  • API Documentation
  • SharePoint Guides
  • GitHub

›Features

Get Started

  • Installation
  • Promise You Will Love It
  • Promise-based Operations

Features

  • Library Integration
  • Library Options
  • SharePoint via Node.js
  • Utility Methods

API Reference

  • List/Library Methods (SP.List)
  • File Methods (SP.File)
  • Folder Methods (SP.Folder)
  • Site Methods (SP.Web)
  • User Methods (SP.User)
  • REST API Methods

SpRestLib UI

  • Form Binding

Help / Support

  • SharePoint Authentication

Utility Methods

Available utility methods.

Renew Security Token

Syntax

sprLib.renewSecurityToken()

Description

Refreshes the SharePoint page security digest token.

Starting in SP2013, .aspx pages include a security digest token in a hidden input element that will expire after 30 minutes (by default).

This method allows the refresh of this value, which can be useful in certain cases. An example would be an application that provides a tool-like interface (e.g.: List Mass Updater) where the page token could expire before all operations have completed.

NOTE: SpRestLib will refresh the token automatically as needed during CRUD operations.

Library Version

Syntax

sprLib.version
sprLib.ui.version

Description

Returns the version and build for the library currently loaded.

Example

sprLib.version
"1.8.0-20181101"

sprLib.ui.version
"1.0.0-20180202"
← SharePoint via Node.jsList/Library Methods (SP.List) →
  • Renew Security Token
    • Syntax
    • Description
  • Library Version
    • Syntax
    • Description
    • Example
SpRestLib
Docs
Getting Started with SpRestLibSharePoint API ReferenceSharePoint Development GuidesAbout JavaScript Promises
Community
FacebookTwitterPinterestYouTube Channel
More
GitHub IssuesGitHub ProjectSpRestLib on Stack OverflowSite Icons
Copyright © 2019 Brent Ely