epinter / demo-sharepoint-upload

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

License: GPL v3

Demo application for Microsoft Graph SDK 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 SDK.

Requirements

Configuration

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

Notes

  • This demo is using client_credentials grant type.

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-sharepoint-upload.bat file-to-upload
    

    or

    java -jar lib/demo-sharepoint-upload-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


Languages

Language:Java 100.0%