2017 © Pedro Peláez
 

library voluum

Voluum SDK for PHP

image

madnesscode/voluum

Voluum SDK for PHP

  • Thursday, September 21, 2017
  • by MadnessCODE
  • Repository
  • 2 Watchers
  • 0 Stars
  • 738 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 7 % Grown

The README.md

Voluum SDK For PHP

Build Status Latest Stable Version Total Downloads License, (*1)

This repository contains the open source PHP SDK that allows you to access the Voluum REST API, (*2)

Installation

The Voluum PHP SDK can be installed with Composer. Run this command:, (*3)

composer require madnesscode/voluum

Usage

Note: This version of the Voluum SDK for PHP requires PHP 5.6 or greater., (*4)

Example, (*5)

use MadnessCODE\Voluum;

Use voluum account email and password for credentials:, (*6)

$email = 'test@example.com';
$password = 'test';

$client = new Voluum\Client\API(new Voluum\Auth\PasswordCredentials($email, $password));

$report_api = new Voluum\API($client);

Or use access id and key:, (*7)

$access_key_id = "access_key_id";
$access_key = "access_key";

$client = new Voluum\Client\API(new Voluum\Auth\AccessKeyCredentials($access_key_id, $access_key));

$report_api = new Voluum\API($client);

How to get report:, (*8)

$result = $report_api->get("report", [
   "from" => date("Y-m-d"),
   "to" => date("Y-m-d"),
   "groupBy" => "campaign"
]);

//Get result as json
echo $result->getJson();

//Get result as object
var_dump($result->getData());

Create new lander:, (*9)

$result = $report_api->post("lander", [
   "namePostfix" => "Test",
   "url" => "http://example.com"
]);

Edit lander:, (*10)

$result = $report_api->put("lander/xxxxx-xxxxxx-xxxxxx-xxxxx", [
   "namePostfix" => "Test 1",
   "url" => "http://example.com"
]);

Delete lander:, (*11)

$result = $report_api->delete("lander", [
   "ids" => "xxxxx-xxxxxx-xxxxxx-xxxxxx"
]);

Upload conversion:, (*12)

$result = $report_api->csv("conversion", 
    "POST", 
    "c384EFV6JHQODRN70575OK6,1.2,abc123,app_install");

Complete documentation is available here., (*13)

License

Please see the license file for more information., (*14)

The Versions

21/09 2017

dev-master

9999999-dev

Voluum SDK for PHP

  Sources   Download

MIT

The Development Requires

by Marko Janosevic

sdk voluum

21/09 2017

1.2

1.2.0.0

Voluum SDK for PHP

  Sources   Download

MIT

The Development Requires

by Marko Janosevic

sdk voluum

21/07 2017

1.0.0

1.0.0.0

Voluum SDK for PHP

  Sources   Download

MIT

The Development Requires

by Marko Janosevic

sdk voluum