Partner API Client Libraries
We try to keep our Partner API as simple as possible, but there are also many client libraries available for Sift that make using it even easier. These libraries will help you create accounts on behalf of your customers if you are a platform or developer agency!
Are you using our Core API? Check out our Core API client libraries instead!
Python
The Python partner API library is available either through pip or easy_install.
Installing with Pip
Python 2:
pip install siftpartner
Python 3:
pip3 install siftpartner
Installing with Easy Install
sudo easy_install siftpartner
Check out the Partner API docs, or head to the source on GitHub.
Ruby
The Ruby client library is available either through RubyGems or Bundler.
Installing with RubyGems
gem install sift-partner
Installing with Bundler
If you are using Bundler, add this line to your Gemfile:
gem 'sift-partner', :git => 'https://github.com/SiftScience/sift-partner-ruby'
Check out the Partner API docs, or head to the source on GitHub.
PHP
The PHP client library is available either through Composer or by manually including it in your project.
Installing with Composer
To install the PHP client library with Composer:
- Add siftscience/sift-php as a dependency in composer.json.
"require": { ... "siftscience/sift-partner-php" : "1.*" ... )
- Run
composer update
.
Installing Manually
To install the PHP client library with Composer:
- Download the latest release
- Extract into a folder in your project root named "sift-partner-php"
- Include the following files in your project
require 'sift-partner-php/lib/Services_JSON-1.0.3/JSON.php'; require 'sift-partner-php/lib/SiftRequest.php'; require 'sift-partner-php/lib/SiftResponse.php'; require 'sift-partner-php/lib/SiftClient.php'; require 'sift-partner-php/lib/Sift.php';
Check out the Partner API docs, or head to the source on GitHub.