Discussions

Ask a Question

Employee Manage Positions guide

Hi, It seems that the documentation provided at: https://platform.humanity.com/reference/post-employee-manage-positions is outdated or incorrect because if I use the same url format as specified there with my own specific token and employee id, 'https://www.humanity.com/api/v2/employee_id/manage-positions?access_token=abcxyz&employee_id=123' \ it responds as "resource not found" However, after doing a few manipulations and some other discussion forum guidelines, the corret format seems to be the following: 'https://www.humanity.com/api/v2/employees/123/manage-positions?access_token=abcxyz' Please update the reference documentation for both the GET / POST requests so it works smoothly for new users.

How to integrate platform humanity on website?

Hi, Hope everyone is fine, I want to integrate platform humanity on my <a href="https://easytrackings.com/ceva-tracking/">website</a>. So that visitor can get access to platform humanity from my site. Let me know if I can do this.

How to add Open Discussion Forum on Website?

I just want to add Open Discussion forum on my website, which is related to <a href="https://trackingsinfo.com/hellofresh-order-tracking/">hellofresh order tracking</a> so that our support members and clients discuss their issues directly instead of using any other app such as skype and zoom.

How to add Open Discussion Forum on my Website

I just want to add Open Discussion forum on my website, which is related to <a href="https://trackingsinfo.com/hellofresh-order-tracking/">hellofresh order tracking</a> so that our support members and clients discuss their issues directly instead of using any other app such as skype and zoom. <a href="https://trackingsinfo.com/hellofresh-order-tracking/">hellofresh order tracking</a>

Generating API keys that last longer than 2 weeks

Hey team, I wonder if you can help advise on how we can generate an API key that lasts longer than 2 weeks?. We currently have our Humanity app integrated with our Salesforce app but unfortunately, I can't find any way to generate an API key that lasts longer than 2 weeks meaning our integration breaks every two weeks. I did check the documentation but perhaps I'm missing something. Looking forward to hearing from someone

post request from app script

Hi team! I have a code in JS - fetch library, i tried to run it in the app script of google sheets, but it fails and gives me an error : ReferenceError: URLSearchParams is not defined here is my code: function Humanity() { const options = { method: 'POST', headers: { accept: 'application/json', 'content-type': 'application/x-www-form-urlencoded' }, body: new URLSearchParams({ start_time: '04:00', end_time: '05:00', start_date: 'Oct 14, 2022', end_date: 'Oct 14, 2022', schedule: '2951815' }) }; fetch('https://www.humanity.com/api/v2/shifts?access_token=xxx', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err)); } how to make it work from app script?

Finding whether an employee logged-in via SSO

Hi, I wanted to see if there are any endpoints offered by Humanity API where we can see if an employee signed in to Humanity UI with SSO or not? I did try some endpoints like https://platform.humanity.com/reference/get-onnow but could not find any such info... Thanks.

API 1.0 timeclock.timesheets doesn't pull timesheets for all employees, only myself?

I'm using Python and API 1.0 to do a humanity pull request using timeclock.timesheets - so I can track past employee adherence (clock ins and outs) to their past schedules and see how closely they match, for payroll purposes. I can successfully make the pull request, using the following parameters: formData = { "data":json.dumps({ "module":"timeclock.timesheets", "method":"GET", "token":thisisthetoken, "request":{ "period":"Last 7 Days", "status":"All" }}) } When I retrieve the result, the data in there is exactly what I'm looking for, BUT it's only for the same login that my Humanity API token is for. I don't need my OWN timesheet data, that's silly! I need the timesheets for the actual employees over the requested period. How do I do this? (Also the parameters for "period" are a bit limiting, could we get "last 2 weeks", "last month", or even the ability to specify our own start and end dates?)
ANSWERED

Location parameter is ignored in timeclock.clockin method

Request: [ 'key' => 'HIDDEN', 'module' => 'timeclock.clockin', 'method' => 'GET', 'request' => [ 'location' => '192.168.1.25', 'employee' => 'hidden' ] ] Documentation says the parameter "location" is accepted as: location (accepted) varchar Clock in location - IP address However, when running this call, the IP address will still be the server IP and not the client IP. Am I doing something wrong or why is the "location" parameter ignored in this call? Thanks in advance!

How to fetch details of only those employees who work in shifts?

How to fetch details of only those employees who work in shifts?