Discussions
Reason: CORS header ‘Access-Control-Allow-Origin’ missing
Hi,
I'm receiving this message while calling the api. Can you give me a contact on which i can give you the top-level domain where the requests to your api will come from?
Regards,
Petar
Posted by Petar almost 5 years ago
What are the steps to Sync with Outlook from Shift planning.
Posted by ellur about 5 years ago
Authentication Failed - You do not have permissions to access the service
Hi, I am writing a windows application and tries to upload time clock data, I am admin of my account. I am not sure if credentials matter while generating tokens and based on tokens you can interpret permissions.
But anyhow, I used admin credentials to generate token and then use that token while uploading data and keep getting this "Authentication Failed error". I added a new app in my account and use their app id and secret id. I am not sure if name of app matters with name of my windows application.
Same exception occurs if I try to use this method https://www.humanity.com/api/v2/timeclock/addclocktime
You can find the screenshot of my postman request here
https://1drv.ms/u/s!AuCr-YEWkmWUirJzTto7_LOB9sjVeQ
Posted by Manvinder Singh about 4 years ago
Rate Limits
Hello,
First, does Humanity publish its API V2 rate limits anywhere, or is there a way to find out what those are?
If not, can you please answer the following questions:
- When using one "master" group account with multiple child group accounts, are rate limits shared (assuming "Group API Access" is enabled)?
- If we had, for example, 19 child accounts and we sent one GET request to all 20 group accounts (from a single API V2 application using Group API Access), would that trigger the rate limit?
- If we created separate API V2 applications in each child account, would they all have independent rate limits (i.e. not using Group API Access)?
Posted by Zaicon Kiroshu over 4 years ago
Absolute Simplest Way to Set Up Basic API
I've created an Application while going through the tutorial.
I have an App ID.
I have an App Secret Token.
How am I supposed to develop a redirect URL (URI)?
Request authorization code by using POST method on:
https://www.humanity.com/oauth2/token.php
{"error":"invalid_request","error_description":"The request method must be POST when requesting an access token","error_uri":"http:\/\/tools.ietf.org\/html\/rfc6749#section-3.2"}
Where can I set up POST?
Is there some sample code somewhere that I can custom tailor for my companies needs?
Posted by Andrew Harrington about 5 years ago
Integrate with Salesforce
HI,
Do you have example of how to integrate with salesforce?
Thanks
Ram
Posted by ellur about 5 years ago
Is there REST example to get access token using API?
HI,
Can you provide sample code to get access token and refresh token using API.
Thanks
Ram
Posted by ellur about 5 years ago
Documentation on GET Shifts
Can someone elaborate on what filters work with each mode for GET Shifts?
For example, the 'filled' filter, what is that for and which modes can I use it with?
Posted by Brady Dibble about 5 years ago
Integration with Power BI
Hello,
I'm developing a reporting solution for a client using Power BI and would like to know if there's a connector with Humanity.
If not, any suggestions or ideas about how to get started? I'm new to Humanity.
Thank you.
Posted by Nuno Nogueira almost 5 years ago
Help w/ api V2 authentication
Hi,
I'm trying to follow https://platform.humanity.com/v2.0/docs, but there are some inconsistencies. I have three questions. So far. :)
The text says I need:
[client_id] of your application,
[redirect_uri] of your application,
***[company_id] - of one of the companies which user belongs to,
[grant_type] - 'password'
[username] - your username
[password] - your password
But the screenshot of Postman shows:
client_id
username
password
grant_type
redirect_uri
***client_secret
The company ID doesn't appear on the postman screenshot and client_secret isn't listed in the text. Oh, and the url in the screenshot is wrong, but that's minor because the one in the text works.
So my first question is what fields are needed?
No matter what fields I use, I get this error:
{
"error": "invalid_request",
"error_description": "The grant type was not specified in the request"
}
But grant_type is specifically listed in the keys in postman. And I'm not sure what should go there. I've tried 'password' since it was in quotes I assumed it was a string, not an instruction. I've tried my application's password. I've tried my password. And various combinations. But I still get the message that grant type wasn't specified.
I would assume that if it were an authentication issue, I'd get a bad name or password error like I've gotten in the past. Authenticate first, then authorize.
So my second question is what should I use for grant_type?
And finally, do you have a timeline for when we need to move to V2?
Thanks,
Bob
Posted by Bob over 5 years ago