Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Authorization Code Flow example using php

NotificationsYou must be signed in to change notification settings

codeversedev/sky-api-tutorial-auth-code-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blackbaud SKY API Authorization Code Flow demo application.

This code sample is a very basic example of how to interact with the Blackbaud OAuth 2.0 Service. You are free to choose the client library and method that best suit your needs when creating production-level applications.

About

The Blackbaud SKY API currently supports theAuthorization Code Flow, which requires a back-end server component to securely store the client secret. For this code sample, we've implemented the server component using PHP.

We've stripped down the user interface to highlight the Authorization Code Flow. OurBarkbaud code samples provide a rich user interface usingSKY UX.

Feel free to leave feedback by filing anissue.

Requirements

A local running Apache server to run and host the project. For this example we recommend you install and run the project usingMAMP.

To run this application in your environment, follow theAuth Code Flow Tutorial instructions within our documentation.

PHP sample coming soon. Follow the instructions for obtaining the necessary keys from the other code samples.

Getting Started

1. Clone the repo.2. Copy the `config.php.sample` file to `config.php`.   Fill in the keys obtained from your Developer Account and registered application.3. Run MAMP.4. MAMP `Preferences` ->  `Web Server` -> Set the `Document Root` to point to the location of your cloned project.5. MAMP `Start Servers`.6. Open your browser to `http://localhost:8888`.

Making PATCH requests in AngularJS

First, construct the request data object.

let patchData = {  constituent_id: 280,  first: 'Robert'};

Then, pass the request into the request'sdata property as a JSON string.

$http({  method: 'patch',  url: '/api/constituents.php',  data: `data=${JSON.stringify(patchData)}`,  headers : {    'Content-Type': 'application/x-www-form-urlencoded'  }}).then(res => {  console.log(res.data.status); // success});

About

Authorization Code Flow example using php

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP56.5%
  • HTML43.5%

[8]ページ先頭

©2009-2025 Movatter.jp