This is the header: GFC-X-PORTER-PIPE: wZ5u8QgsCsTKR2Wz
Content-Type: application/json
So when you do a get using curl(like below): curl -XGET -H "GFC-X-PORTER-PIPE: wZ5u8QgsCsTKR2Wz" -H "Content-Type: application/json" "https://mywebsite.com/employeestatus?key=John.Doe|John%20Doe"
RESULT: {"name":"John Doe","request_header":{"Source-IP":"50.200.140.2"},"status":"out","update_date":"2017-12-13 08:54:04","username":"John.Doe","key":"John.Doe|John Doe"}
If you look at the result, you will see the status “OUT” (in red font) and that will change as there is a script that runs to update that status. That status needs to be underneath the employee info (except the executives) on this link: https://www.mywebsite.com/contact-us/addison/, https://www.mywebsite.com/contact-us/chicago/, and https://www.mywebsite.com/contact-us/hammond/ and you match their key(in yellow highlight) to the user in the contact-us page of the website.
It should show as “I am IN” and “I am OUT” underneath each user. The “IN” and “OUT” word will come from the database and the “I am” is hardcoded.