Contacts

Create, read, update and delete contacts.

Create Contact

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

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
JSON
{
"key": "__API_KEY__",
"email": "email@address.com",
"contact": {
"first_name": "Jenny",
"last_name": "Hide"
}
}
PHP
<?php
$update = $flashy->contacts->update("email@address.com", array(
"first_name" => "Jenny",
"last_name" => "Hide"
));
?>
Response

200: OK

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

If you update a contact without an email you need to pass "phone_contact" and the contact phone number to the request like this:

JSON
JSON
{
"key": "__API_KEY__",
"phone_contact": true,
"contact": {
"first_name": "Jenny",
"last_name": "Hide",
"phone": "972526845400"
}
}

Create Or Update

https://flashyapp.com/api/contacts/create-or-update
JSON
JSON
{
"key": "__API_KEY__",
"contact": {
"email": "email@address.com",
"first_name": "Jenny",
"last_name": "Hide"
}
}

Get Contact

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

200: OK

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

Search Contacts

https://flashyapp.com/api/contacts/search
JSON
JSON
{
"key": "__API_KEY__",
"q": "972526845430",
"by": "phone"
}

Create Phone Contact (Without Email)

https://flashyapp.com/api/contacts/create
{
"key": "__API_KEY__",
"phone_contact": true,
"contact": {
"phone": "972526845400",
"first_name": "Jenny",
"last_name": "Hide"
}
}