onedrive-php-sdk | OneDrive SDK for PHP | SDK library

 by   krizalys PHP Version: 3.1.1 License: BSD-3-Clause

kandi X-RAY | onedrive-php-sdk Summary

kandi X-RAY | onedrive-php-sdk Summary

onedrive-php-sdk is a PHP library typically used in Utilities, SDK, Composer applications. onedrive-php-sdk has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

[StyleCI] The OneDrive SDK for PHP is an open source library that allows [PHP][php] applications to interact programmatically with the [OneDrive REST API][onedrive-rest-api]. It supports operations such as creating, reading, updating, deleting (CRUD) files and folders, as well as moving or copying them to other folders.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              onedrive-php-sdk has a low active ecosystem.
              It has 134 star(s) with 67 fork(s). There are 7 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 13 open issues and 58 have been closed. On average issues are closed in 59 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of onedrive-php-sdk is 3.1.1

            kandi-Quality Quality

              onedrive-php-sdk has 0 bugs and 0 code smells.

            kandi-Security Security

              onedrive-php-sdk has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              onedrive-php-sdk code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              onedrive-php-sdk is licensed under the BSD-3-Clause License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              onedrive-php-sdk releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.
              onedrive-php-sdk saves you 4084 person hours of effort in developing the same functionality from scratch.
              It has 8687 lines of code, 504 functions and 130 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed onedrive-php-sdk and discovered the below as its top functions. This is intended to give you an instant insight into onedrive-php-sdk implemented functionality, and help decide if they suit your requirements.
            • Builds the service definition .
            • Uploads a file .
            • Completes the stream .
            • Obtain an access token .
            • Get the root drive item .
            • Builds the options .
            • Serialize the value .
            • Inject value .
            • Builds the options .
            • Inject a value .
            Get all kandi verified functions for this library.

            onedrive-php-sdk Key Features

            No Key Features are available at this moment for onedrive-php-sdk.

            onedrive-php-sdk Examples and Code Snippets

            No Code Snippets are available at this moment for onedrive-php-sdk.

            Community Discussions

            Trending Discussions on onedrive-php-sdk

            QUESTION

            OneDrive file access with php using microsoft graph
            Asked 2018-Jul-20 at 07:44

            I tried using the library from krizalys for an implementation to read and write files from OneDrive. It should work for business accounts but would be nice if it could also work for personal accounts.

            Since I read that the Live SDK used in krizalys example will be offline soon (as mentioned here), I tried implementing Microsoft Graph instead.

            I implemented two ways to get an access token at the moment, one with grant type password (getAccessToken Method from this sample used) and one with client_credentials (Like in the krizalys lib). Both seem to work and return an access_token and refresh_token, but when I try to make a request I get the message:

            "InvalidAuthenticationToken [message] => Access token is empty"

            The code for my request:

            ...

            ANSWER

            Answered 2018-Jul-19 at 15:09

            You've registered your application in the v2 Endpoint (apps.dev.microsoft.com) but the sample code you're using is for the v1 Endpoint. These are not interchangeable. Also, password isn't a valid OAuth Grant for the v2 Endpoint (v2 supports authorization_code, implicit, and client_credentials)

            You need to obtain your token from the v2 Endpoint. You might find these articles helpful:

            Source https://stackoverflow.com/questions/51403151

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install onedrive-php-sdk

            The recommended way to install OneDrive SDK for PHP is to install it using [Composer][composer]:. If you are not already using Composer in your PHP project, refer to [the Composer documentation][composer] to learn how to set it up.
            To use the OneDrive SDK for PHP, you require a web application exposing a URL initiating the authorization flow. Typically, this URL, referred to as your web application’s Redirect URI, is a PHP script requesting an authorization token. This token is required whenever your web application interacts with your users' OneDrive contents and may be reused across multiple calls. An example of such a web application is our [functional test suite][functional-test-suite]. You also require a OneDrive application. To register such an application, first [sign in to Microsoft Azure][microsoft-azure-login], then visit [App registrations][app-registration-portal] and add a registration for your application. While registering your application, you need to set its Redirect URI, explained above. We currently only support Web redirect URIs. Once created, your application is assigned an Application (client) ID, referred to as its Client ID. In Certificate & secrets, you also need to add at least one Client secret. Warning: Client Secrets are similar to passwords or private keys by allowing an application to identify as yours: therefore, Client Secrets should be kept private. Once you have a Redirect URI, a Client ID, and a Client Secret, your web application can start using the OneDrive SDK for PHP in three steps.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/krizalys/onedrive-php-sdk.git

          • CLI

            gh repo clone krizalys/onedrive-php-sdk

          • sshUrl

            git@github.com:krizalys/onedrive-php-sdk.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular SDK Libraries

            WeiXinMPSDK

            by JeffreySu

            operator-sdk

            by operator-framework

            mobile

            by golang

            Try Top Libraries by krizalys

            sublime-portage

            by krizalysPython

            joomla-breadcrumbs

            by krizalysPHP

            gentoo-overlay

            by krizalysShell

            inspeql

            by krizalysJavaScript

            joomla-countries

            by krizalysPHP