Contacts
Create, read, update and delete contacts.

Create Contact

1
https://flashyapp.com/api/contacts/create
Copied!
JSON
PHP
Response
1
{
2
"key": "__API_KEY__",
3
"contact": {
4
"email": "[email protected]",
5
"first_name": "Jenny",
6
"last_name": "Hide"
7
}
8
}
Copied!
1
<?php
2
$create = $flashy->contacts->create(array(
3
"email" => "[email protected]",
4
"first_name" => "Jenny",
5
"last_name" => "Hide"
6
));
7
?>
Copied!
200: OK
1
{
2
"success": true,
3
"contact": {
4
"email": "[email protected]",
5
"first_name": "Jenny",
6
"last_name": "Hide"
7
}
8
}
Copied!

Update Contact

1
https://flashyapp.com/api/contacts/update
Copied!
JSON
PHP
Response
1
{
2
"key": "__API_KEY__",
3
"email": "[email protected]",
4
"contact": {
5
"first_name": "Jenny",
6
"last_name": "Hide"
7
}
8
}
Copied!
1
<?php
2
$update = $flashy->contacts->update("[email protected]", array(
3
"first_name" => "Jenny",
4
"last_name" => "Hide"
5
));
6
?>
Copied!
200: OK
1
{
2
"success": true,
3
"contact": {
4
"first_name": "Jenny",
5
"last_name": "Hide"
6
}
7
}
Copied!
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
1
{
2
"key": "__API_KEY__",
3
"phone_contact": true,
4
"contact": {
5
"first_name": "Jenny",
6
"last_name": "Hide",
7
"phone": "972526845400"
8
}
9
}
Copied!

Create Or Update

1
https://flashyapp.com/api/contacts/create-or-update
Copied!
JSON
1
{
2
"key": "__API_KEY__",
3
"contact": {
4
"email": "[email protected]",
5
"first_name": "Jenny",
6
"last_name": "Hide"
7
}
8
}
Copied!

Get Contact

1
https://flashyapp.com/api/contacts
Copied!
JSON
PHP
Response
1
{
2
"key": "__API_KEY__",
3
"email": "[email protected]"
4
}
Copied!
1
<?php
2
$get = $flashy->contacts->get("[email protected]");
3
?>
Copied!
200: OK
1
{
2
"success": true,
3
"contact": {
4
"first_name": "Jenny",
5
"last_name": "Hide"
6
}
7
}
Copied!

Search Contacts

1
https://flashyapp.com/api/contacts/search
Copied!
JSON
1
{
2
"key": "__API_KEY__",
3
"q": "972526845430",
4
"by": "phone"
5
}
Copied!

Create Phone Contact (Without Email)

1
https://flashyapp.com/api/contacts/create
Copied!
1
{
2
"key": "__API_KEY__",
3
"phone_contact": true,
4
"contact": {
5
"phone": "972526845400",
6
"first_name": "Jenny",
7
"last_name": "Hide"
8
}
9
}
Copied!
Last modified 1yr ago