Skip to content

CollectorsQuest/impermium-php-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Impermium PHP SDK (v1.0)

Impermium is a service to help you fight with social spam. Read more about Impermium API on their website.

Usage

The minimal you'll need to have is:

require 'impermium-php-sdk/src/Impermium.class.php';

$impermium = new Impermium('YOUR_APP_KEY');

To make API calls:

try
{
  $params = array(
    'user_id' => 123456,
    'operation' => 'CREATE',
    'enduser_ip' => '74.125.39.99',
    'first_name' => 'Johnny',
    'last_name' => 'Depp',
    'password_hash' => 'Sw0rdf1sh',
    'email_identity' => '[email protected]'
  );

  $response = $impermium->api('user/account', $params);
}
catch (ImpermiumApiException $e) { ; }

Tests

The tests can be executed by using this command from the base directory:

API_KEY=123456789abcdefghijk phpunit --stderr --bootstrap tests/bootstrap.php tests/tests.php

About

PHP SDK for the API of Impermium.com/api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages