2017 © Pedro Peláez
 

library sharepoint-oauth-app-client

SharePoint OAuth App Client

image

wearearchitect/sharepoint-oauth-app-client

SharePoint OAuth App Client

  • Thursday, April 7, 2016
  • by quetzyg
  • Repository
  • 18 Watchers
  • 10 Stars
  • 4,437 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 2 Open issues
  • 14 Versions
  • 1 % Grown

The README.md

SharePoint OAuth App Client

The SharePoint OAuth App Client is a PHP library that makes it easy to authenticate via OAuth2 with the SharePoint Online (2013) REST API and work with Lists, Folders, Items, Files and Users., (*1)

This library aims for PSR-1, PSR-2 and PSR-4 standards compliance., (*2)

Requirements

Installation

``` bash composer require "wearearchitect/sharepoint-oauth-app-client:0.9.*", (*3)


## Basic usage example ```php <?php require 'vendor/autoload.php'; use WeAreArchitect\SharePoint\SPException; use WeAreArchitect\SharePoint\SPList; use WeAreArchitect\SharePoint\SPSite; try { $settings = [ 'site' => [ 'resource' => '00000000-0000-ffff-0000-000000000000/example.sharepoint.com@09g7c3b0-f0d4-416d-39a7-09671ab91f64', 'client_id' => '52848cad-bc13-4d69-a371-30deff17bb4d/example.com@09g7c3b0-f0d4-416d-39a7-09671ab91f64', 'secret' => 'YzcZQ7N4lTeK5COin/nmNRG5kkL35gAW1scrum5mXVgE=', ] ]; // create a SharePoint Site instance $site = SPSite::create('https://example.sharepoint.com/sites/mySite/', $settings); // generate an Access Token (App-only Policy) $site->createSPAccessToken(); // get all the Lists and respective Items $lists = SPList::getAll($site, [ 'fetch' => true, ]); // iterate through each List foreach ($lists as $list) { var_dump($list); // iterate through each List Item foreach ($list as $item) { var_dump($item); } } } catch (SPException $e) { // handle exceptions }

Class documentation

SharePoint credentials

See how to generate the SharePoint credentials here., (*4)

Troubleshooting

Check for common library issues and how to solve them, (*5)

SharePoint Documentation

License

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

The Versions

07/04 2016

dev-master

9999999-dev https://github.com/wearearchitect/sharepoint-oauth-app-client

SharePoint OAuth App Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Quetzy Garcia

api oauth rest client online sharepoint 2013

07/04 2016

v0.9.101

0.9.101.0 https://github.com/wearearchitect/sharepoint-oauth-app-client

SharePoint OAuth App Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Quetzy Garcia

api oauth rest client online sharepoint 2013

30/11 2015

v0.9.100

0.9.100.0 https://github.com/wearearchitect/sharepoint-oauth-app-client

SharePoint OAuth App Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Quetzy Garcia

api oauth rest client online sharepoint 2013

13/10 2015

v0.9.99

0.9.99.0 https://github.com/wearearchitect/sharepoint-oauth-app-client

SharePoint OAuth App Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Quetzy Garcia

api oauth rest client online sharepoint 2013

09/09 2015

dev-develop

dev-develop https://github.com/wearearchitect/sharepoint-oauth-app-client

SharePoint OAuth App Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Quetzy Garcia

api oauth rest client online sharepoint 2013

09/09 2015

v0.9.98

0.9.98.0 https://github.com/wearearchitect/sharepoint-oauth-app-client

SharePoint OAuth App Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Quetzy Garcia

api oauth rest client online sharepoint 2013

07/09 2015

v0.9.97

0.9.97.0 https://github.com/wearearchitect/sharepoint-oauth-app-client

SharePoint OAuth App Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Quetzy Garcia

api oauth rest client online sharepoint 2013

03/09 2015

v0.9.96

0.9.96.0 https://github.com/wearearchitect/sharepoint-oauth-app-client

SharePoint OAuth App Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Quetzy Garcia

api oauth rest client online sharepoint 2013

27/08 2015

v0.9.95

0.9.95.0 https://github.com/wearearchitect/sharepoint-oauth-app-client

SharePoint OAuth App Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Quetzy Garcia

api oauth rest client online sharepoint 2013

10/06 2015

v0.9.94

0.9.94.0 https://github.com/wearearchitect/sharepoint-oauth-app-client

SharePoint OAuth App Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Quetzy Garcia

api oauth rest client online sharepoint 2013

20/05 2015

v0.9.93

0.9.93.0 https://github.com/wearearchitect/sharepoint-oauth-app-client

SharePoint OAuth App Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Quetzy Garcia

api oauth rest client online sharepoint 2013

18/05 2015

v0.9.92

0.9.92.0 https://github.com/wearearchitect/sharepoint-oauth-app-client

SharePoint OAuth App Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Quetzy Garcia

api oauth rest client online sharepoint 2013

29/04 2015

v0.9.91

0.9.91.0 https://github.com/wearearchitect/sharepoint-oauth-app-client

SharePoint OAuth App Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Quetzy Garcia

api oauth rest client online sharepoint 2013

10/04 2015

v0.9.90

0.9.90.0 https://github.com/wearearchitect/sharepoint-oauth-app-client

SharePoint OAuth App Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Quetzy Garcia

api oauth rest client online sharepoint 2013