Contacts

Create, read, update and delete contacts.

Create Contact

https://flashyapp.com/api/contacts/create
JSON
PHP
Response
{
"key": "__API_KEY__",
"contact": {
"email": "email@address.com",
"first_name": "Jenny",
"last_name": "Hide"
}
}
<?php
$create = $flashy->contacts->create(array(
"email" => "email@address.com",
"first_name" => "Jenny",
"last_name" => "Hide"
));
?>

200: OK

{
"success": true,
"contact": {
"email": "email@address.com",
"first_name" => "Jenny",
"last_name" => "Hide"
}
}

Update Contact

https://flashyapp.com/api/contacts/update
JSON
PHP
Response
{
"key": "__API_KEY__",
"email": "email@address.com",
"contact": {
"first_name": "Jenny",
"last_name": "Hide"
}
}
<?php
$update = $flashy->contacts->update("email@address.com", array(
"first_name" => "Jenny",
"last_name" => "Hide"
));
?>

200: OK

{
"success": true,
"contact": {
"first_name" => "Jenny",
"last_name" => "Hide"
}
}

Get Contact

https://flashyapp.com/api/contacts
JSON
PHP
Response
{
"key": "__API_KEY__",
"email": "email@address.com"
}
<?php
$get = $flashy->contacts->get("email@address.com");
?>

200: OK

{
"success": true,
"contact": {
"first_name" => "Jenny",
"last_name" => "Hide"
}
}