Skip to content

PictureInformatica/demo-sharepoint-uploadrest

Repository files navigation

License: GPL v3

Demo application for Microsoft Graph API Sharepoint file upload

Description

This sample is a working application to test and demonstrate how to upload files to a sharepoint site using the Graph Rest API. The authentication is done using MSAL4J library, and the file upload with REST requests (upload session).

Requirements

Configuration

The application.conf needs to be populated with information so the application can connect to the mailbox:

Notes

Usage

  • Clean

    ./gradlew clean
    
  • Run

    ./gradlew run
    
  • Create distribution (on build/install)

    ./gradlew installDist
    
  • Create distribution zip (on build/distributions)

    ./gradlew distZip
    
  • Run from build/install

    ./demo-sharepointupload-rest.bat file-to-upload
    

    or

    java -jar lib/demo-sharepointupload-rest-0.1.jar file-to-upload
    

When the application is executed, if an application.conf doesn't exist, it will be created from an internal template. See Configuration.

License

Copyright © 2023, Picture Soluções em TI

This demo application is licensed under GPLv3, see LICENSE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages