SPSyncN

SharePoint .Net assets sync via Node.js


Keywords
sharepoint, dotnet, nodejs, assets, sync, spsave, crazystuff, publishing, sharepoint-online
License
MIT
Install
Install-Package SPSyncN -Version 1.0.3

Documentation

SPSyncN - SharePoint .Net assets sync via Node.js

NuGet version Downloads Build Status Gitter chat


The wrapper for:

for usage in .Net assemblies.


Features

  • Upload a file to SharePoint document library
  • Upload a folder with structure and files to SharePoint
  • Upload a folder with structure and files to SharePoint in incremental mode
  • Download a file to SharePoint document library
  • Download a folder with structure and files to SharePoint
  • Remove a file from SharePoint document library
  • Remove a folder with all content from SharePoint

Installation

Install-Package SPAuthN
Install-Package SPSyncN

Usage

Options options = SPAuth.GetAuth("--configPath='./config/private.json' --forcePrompts=false");

Console.WriteLine("Upload a file...");
Upload.File("./Documents/TextFile.txt", "Shared Documents/File Upload Test", options.SiteUrl, options.AuthOptions);

Console.WriteLine("Download a file...");
Download.File("Shared Documents/File Upload Test/TextFile.txt", "./Download", options.SiteUrl, options.AuthOptions);

Console.WriteLine("Deleting a file...");
Remove.File("Shared Documents/File Upload Test/TextFile.txt", options.SiteUrl, options.AuthOptions);

Console.WriteLine("Upload a folder...");
Upload.Folder("./Documents", "Shared Documents/Folder Upload Test", options.SiteUrl, options.AuthOptions);

Console.WriteLine("Upload a folder (incremental mode)...");
Upload.FolderDiff("./Documents", "Shared Documents/Folder Upload Test", options.SiteUrl, options.AuthOptions);

Console.WriteLine("Download a folder...");
Download.Folder("Shared Documents/Folder Upload Test", "./Download", options.SiteUrl, options.AuthOptions);

Console.WriteLine("Deleting a folder...");
Remove.Folder("Shared Documents/Folder Upload Test", options.SiteUrl, options.AuthOptions);