Coder Social home page Coder Social logo

trustswiftly / trustswiftly-php-sdk Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 23 KB

https://trustswiftly.com - Identity Verifications (PHP SDK)

License: MIT License

PHP 100.00%
verification identification fraud-detection fraud-prevention fraudulent-transactions

trustswiftly-php-sdk's Introduction

trustswiftly-php-sdk

PHP SDK for the TrustSwiftly

Our official API documentation is at TrustSwifly Integration Documentation

Installation

With Composer

composer require trustswifly/trustswiftly-php-sdk
"trustswiftly/trustswiftly-php-sdk": "^1.0"

Usage

Intialize Configs

$trustObject = new TrustSwiftly\TrustSwiftly($api_key, $base_url, $api_secret, $embed_key);

Validate Configs

$validationResponse = TrustSwiftly\TrustSwiftly::validateCredentials($key,$base_url,$api_secret,$embed_key);

User Apis

Get All Users

$filterAndSortOptions=[
        'per_page'=>2
    ];
$userData=$trustObject->userClient()->getAllUsers($filterAndSortOptions);

Get User Details By Id

$userDetails=$trustObject->userClient()->getUserDetails($user_id);

User Object

$user=$userDetails->user();

User Verifications

$user=$userDetails->userVerifications();

Create User

$userData = [
        'email'=>'[email protected]'
    ];
$userCreateData = $trustObject->userClient()->createUser($userData);

User Update

$updateData=[
        'first_name'=>'asd'
    ];
$userDetails=$trustObject->userClient()->updateUser($user_id,$updateData);

User Verification Update

$updateData=[
        'verification_id'=>xx,
        'status'=>xx
    ];
$userVerificationData=$trustObject->userClient()->updateUserVerification($user_id,$updateData);

Delete User

$userDetails=$trustObject->userClient()->deleteUser($user_id);

Get Magic Link

$userDetails=$trustObject->userClient()->getMagicLink($user_id);

Template Apis

Get Templates

$templateData=$trustObject->templateClient()->getVerificationTemplates();

Stat Apis

Get Statistics

$statData=$trustObject->statisticsClient()->getVerificationStats();

Signatures

Embed

$embedSignature=$trustObject->getEmbedSignature($user_id);

Webhook

$result=TrustSwiftly\TrustSwiftly::verifyWebhookSignature($receivedSignature,file_get_contents("php://input"),$signatureSecret);

trustswiftly-php-sdk's People

Contributors

akhenia-palash avatar trustswiftly avatar

Watchers

 avatar  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.