https://flashyapp.com/api/contacts/create
{"key": "__API_KEY__","contact": {"email": "[email protected]","first_name": "Jenny","last_name": "Hide"}}
<?php$create = $flashy->contacts->create(array("email" => "[email protected]","first_name" => "Jenny","last_name" => "Hide"));?>
200: OK
{"success": true,"contact": {"email": "[email protected]","first_name": "Jenny","last_name": "Hide"}}
https://flashyapp.com/api/contacts/update
{"key": "__API_KEY__","email": "[email protected]","contact": {"first_name": "Jenny","last_name": "Hide"}}
<?php$update = $flashy->contacts->update("[email protected]", array("first_name" => "Jenny","last_name" => "Hide"));?>
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:
{"key": "__API_KEY__","phone_contact": true,"contact": {"first_name": "Jenny","last_name": "Hide","phone": "972526845400"}}
https://flashyapp.com/api/contacts/create-or-update
{"key": "__API_KEY__","contact": {"email": "[email protected]","first_name": "Jenny","last_name": "Hide"}}
https://flashyapp.com/api/contacts
{"key": "__API_KEY__","email": "[email protected]"}
<?php$get = $flashy->contacts->get("[email protected]");?>
200: OK
{"success": true,"contact": {"first_name": "Jenny","last_name": "Hide"}}
​
https://flashyapp.com/api/contacts/search
{"key": "__API_KEY__","q": "972526845430","by": "phone"}
​
https://flashyapp.com/api/contacts/create
{"key": "__API_KEY__","phone_contact": true,"contact": {"phone": "972526845400","first_name": "Jenny","last_name": "Hide"}}