Code Monkey home page Code Monkey logo

on-api-php-sdk's Introduction

Build Status

Features

  • Provides easy-to-use HTTP clients for all supported ON API methods and authentication protocols.
  • Currently built on Curl
  • Provides authentication and simple token management

Getting Started

  1. Have a Web Service API user – Before you begin, you need to sign up for the onSDK and have a Manager account created.
  2. Minimum requirements – To run the SDK, your system will need to meet the [minimum requirements][docs-requirements], including having PHP >= 5.6 compiled with the cURL extension and cURL 7.16.2+ compiled with a TLS backend (e.g., NSS or OpenSSL).
  3. Install the SDK – Using Composer is the recommended way to install the Blackbaud onSDK for PHP. The SDK is available via Packagist under the blackbaud/onsdk package.

Quick Examples

Authenticate with API

<?php
// Require the Composer autoloader.
require 'vendor/autoload.php';

use Blackbaud\onSDK\onApiClient;

// Instantiate a Blackbaud Client.
$bb = new onApiClient('SchoolUrl','Username','Password');

Get User Info

<?php
// get info about the current user account using the SDK.
try {
    $bb->get_current_user();
    print_r($bb);
} catch (Exception $e) {
    echo "There was an error getting user info.\n";
}

on-api-php-sdk's People

Contributors

joshlyford avatar blackbaud-joshlyford avatar blackbaud-jakespirek avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.