2017 © Pedro Peláez
 

library threatexchange

ThreatExchange client.

image

certly/threatexchange

ThreatExchange client.

  • Thursday, October 20, 2016
  • by iangcarroll
  • Repository
  • 2 Watchers
  • 2 Stars
  • 1,810 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

ThreatExchange Client

Interact with the ThreatExchange API via PHP., (*1)

composer require certly/threatexchange

Documentation

Initialize a ThreatExchange object with your application ID and application secret. All API calls will return a stdClass with the result., (*2)

$tx = new Certly\ThreatExchange\ThreatExchange("123", "abc");
echo var_dump($tx->getThreatExchangeMembers());

You can call other endpoints not directly implemented with the call function. You'll be authenticated automatically., (*3)

$tx = new Certly\ThreatExchange\ThreatExchange("123", "abc");
$tx->call("/898557073557972/descriptors", "GET");

If you need to pass parameters for a GET or POST request, just pass an associative array., (*4)

$tx = new Certly\ThreatExchange\ThreatExchange("123", "abc");
$tx->call("/898557073557972/descriptors", "GET", [
    "param_name" => "param_value"
]);

You can also use GET and POST specific functions., (*5)

$tx = new Certly\ThreatExchange\ThreatExchange("123", "abc");
$tx->get("/898557073557972/descriptors", [
    "param_name" => "param_value"
]);

If you want to retrieve more results, simply use the next function with the pagination URL returned from your previous request., (*6)

$tx = new Certly\ThreatExchange\ThreatExchange("123", "abc");
$result = $tx->getThreatIndicators("domain", "ian.sh", ["limit" => 1]);
$tx->next($result->paging->next);

The Versions

20/10 2016

dev-master

9999999-dev

ThreatExchange client.

  Sources   Download

The Requires

 

by Ian Carroll

20/10 2016

v1.4.1

1.4.1.0

ThreatExchange client.

  Sources   Download

The Requires

 

by Ian Carroll

19/10 2016

v1.4

1.4.0.0

ThreatExchange client.

  Sources   Download

The Requires

 

by Ian Carroll

12/02 2016

v1.3

1.3.0.0

ThreatExchange client.

  Sources   Download

The Requires

 

by Ian Carroll

12/02 2016

v1.2

1.2.0.0

ThreatExchange client.

  Sources   Download

The Requires

 

by Ian Carroll

25/12 2015

v1.1

1.1.0.0

ThreatExchange client.

  Sources   Download

The Requires

 

by Ian Carroll

25/12 2015

v1.0

1.0.0.0

ThreatExchange client.

  Sources   Download

The Requires

 

by Ian Carroll