2017 © Pedro Peláez
 

library sharepoint-api

A minimal implementation of Sharepoint 2013 REST API

image

delaneymethod/sharepoint-api

A minimal implementation of Sharepoint 2013 REST API

  • Friday, May 18, 2018
  • by hello@delaneymethod.com
  • Repository
  • 1 Watchers
  • 1 Stars
  • 70 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 9 Versions
  • 218 % Grown

The README.md

Sharepoint 2013 REST API

Latest Version on Packagist Total Downloads, (*1)

This is a minimal PHP implementation of the Sharepoint 2013 REST API. It contains only the methods needed for our flysystem-sharepoint adapter. We are open however to PRs that add extra methods to the client., (*2)

Here are a few examples on how you can use the package:, (*3)

use DelaneyMethod\Sharepoint\Client as SharepointClient;

$siteName = 'YOUR_TEAM_SITE_NAME';
$siteUrl = 'https://YOUR_SITE.sharepoint.com';
$publicUrl = 'https://YOUR_SITE.sharepoint.com/:i:/r/sites/YOUR_TEAM_SITE_NAME/Shared%20Documents'
$clientId = 'YOUR_CLIENT_ID';
$clientSecret = 'YOUR_CLIENT_SECRET';
$verify = false; // See http://docs.guzzlephp.org/en/stable/request-options.html#verify
$accessToken = 'YOUR_ACCESS_TOKEN';

$client = new SharepointClient($siteName, $siteUrl, $publicUrl, $clientId, $clientSecret, $verify, $accessToken);

// Create a folder
$client->createFolder($path);

// Delete a folder
$client->delete($path);

// Upload a file
$client->upload($path, $contents);

Installation

You can install the package via composer:, (*4)

composer require delaneymethod/sharepoint-api

Usage

The first thing you need to do is get an authorisation token from Sharepoint. Sharepoint has made this very easy. You can register a new App within your Sharepoint Site that can be used to generate a client ID and Secret. You'll find more info at Authorizing REST API calls against SharePoint Site., (*5)

You can read the whole article for additional knowledge but the first step is the only step you're interested in for our flysystem-sharepoint adapter to work., (*6)

With an authorization token you can instantiate a DelaneyMethod\Sharepoint\Client., (*7)

Look in the source code of DelaneyMethod\Sharepoint\Client to discover the methods you can use., (*8)

Changelog

Please see CHANGELOG for more information what has changed recently., (*9)

Contributing

Please see CONTRIBUTING for details., (*10)

Security

If you discover any security related issues, please email hello@delaneymethod.com instead of using the issue tracker., (*11)

License

The MIT License (MIT). Please see License File for more information., (*12)

The Versions

18/05 2018

dev-master

9999999-dev https://github.com/delaneymethod/sharepoint-api

A minimal implementation of Sharepoint 2013 REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest sharepoint delaneymethod sharepoint-api

18/05 2018

2.0.4

2.0.4.0 https://github.com/delaneymethod/sharepoint-api

A minimal implementation of Sharepoint 2013 REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest sharepoint delaneymethod sharepoint-api

07/05 2018

2.0.3

2.0.3.0 https://github.com/delaneymethod/sharepoint-api

A minimal implementation of Sharepoint 2013 REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest sharepoint delaneymethod sharepoint-api

07/05 2018

2.0.2

2.0.2.0 https://github.com/delaneymethod/sharepoint-api

A minimal implementation of Sharepoint 2013 REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest sharepoint delaneymethod sharepoint-api

01/05 2018

2.0.1

2.0.1.0 https://github.com/delaneymethod/sharepoint-api

A minimal implementation of Sharepoint 2013 REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest sharepoint delaneymethod sharepoint-api

09/04 2018

2.0.0

2.0.0.0 https://github.com/delaneymethod/sharepoint-api

A minimal implementation of Sharepoint 2013 REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest sharepoint delaneymethod sharepoint-api

03/04 2018

1.0.2

1.0.2.0 https://github.com/delaneymethod/sharepoint-api

A minimal implementation of Sharepoint 2013 REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest sharepoint delaneymethod sharepoint-api

03/04 2018

1.0.1

1.0.1.0 https://github.com/delaneymethod/sharepoint-api

A minimal implementation of Sharepoint 2013 REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest sharepoint delaneymethod sharepoint-api

03/04 2018

1.0.0

1.0.0.0 https://github.com/delaneymethod/sharepoint-api

A minimal implementation of Sharepoint 2013 REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest sharepoint delaneymethod sharepoint-api