Skip to content

Instantly share code, notes, and snippets.

@numan
numan / webhook-data-example.json
Last active September 24, 2018 20:01
HRIS Webhook Data Example
{
"users": [
{
"hris_id": "1FdzdQf35CffSd53",
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"job_title": "VP Engineering",
"phone_number": "+1 223-334-4355",
"employee_id": "E123556",
@numan
numan / webhook-request.sh
Last active September 24, 2018 20:03
Sample HRIS Webhook Request
curl --header "X-HRIS-AUTHENTICATION: 773603159c636db69c1e596c68a6368624305bcb" \
--header "Content-Type: application/json" \
-X POST \
-d '{"users": [{"phone_number": "+1 223-334-4355", "last_name": "Doe", "profile_image": {"url": "https://s3.amazonaws.com/publicassets.7geese.com/misc/765-default-avatar.png", "last_modified": 23323123123123, "cache_info": "sadsaDSds343GzzZ"}, "manager": {"hris_id": "E9923443"}, "active": true, "hris_id": "1FdzdQf35CffSd53", "first_name": "John", "employee_id": "E123556", "departments": ["Engineering > Mobile Team", "Customer Success > Support > Mobile Support", "Sales > Sales Engineer"], "email": "[email protected]", "job_title": "VP Engineering"}]}' \
https://app.7geese.com/hriswebhook/sync/e4a777a9021349fc9d061bd60fe1ec20/
add_to_21([2, 32, 11, 1, 34, 18])
[]

add_to_21([1, 23, 19, 32, 1, 20, 7, 14])
[20, 1]