PHP code example of stackmash / stackmash-php
1. Go to this page and download the library: Download stackmash/stackmash-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
stackmash / stackmash-php example snippets
// Import dependencies
/ Get the project you wish to create actions for
$project = Stackmash::getProject("PUBLIC_KEY", "PRIVATE_KEY");
// Create an action
$project->action("category-id-name", "New user signed up", [
"Email address" => "[email protected]",
"Name" => "John Doe",
"Date of birth" => "19/03/1986",
"Interests" => [
"Rocket building", "Football", "Programming"
]
]);
bash
composer