Xero previewer not displaying Employees - xero-api

I am setting up a Xero payroll integration using an Australian demo company. I have set up a private api key and using the previewer to check the responses to retrieving all employees.
There are 6 test employees and when I use the following endpoint https://api.xero.com/api.xro/2.0/employees no employee data is returned but I get a 200 response.
If I post data through the Previewer using the same endpoint, contacts are successfully created but are not in the Payroll Employees list but rather in the contacts list.
Using a get on the above endpoint after this point will then return any Employee created through the Post in the Previewer. Those alone.
When I set up the API key there was an option to enable for Payroll and I did do this.
Anyone know why I'm not getting the 6 Employees in the Employee list please?
Many thanks
Cath

found it: wrong endpoint was being used. This was the correct one.
https://api.xero.com/payroll.xro/1.0/Employees

Related

Xero NZ Payroll API : Employee number vs GUID?

Most payroll systems have some sort of employee code that is unique to employees.
I have been using the Employees endpoint to GET all employees in the Demo company and can see the EmployeeID field which appears to be a regular GUID.
But when browsing the employee list through the Xero user interface it is not possible to see an employee's GUID like we can for Contacts or Invoices?
I actually just see a number like this... What is this number at the end of the URL?
https://payroll.xero.com/Employee?CID=!tkSD3#employees/12345678
It looks like this has been an issue with Xero since 2015 that has still not been resolved!
https://community.xero.com/developer/discussion/12133203/

Mautic API - get all the contacts

I'm connecting to Mautic via API, and I'm already getting the contacts correctly by segments or by searches, but the option to retrieve all the contacts doesn't work for me.
If I call the API with this url: {{MauticDomain}}/api/contacts
I get these results:
results API Call
In reality there are 144 contacts and they don't correspond to the ids returned in this query.
The first contact it outputs is the id 4844 and in the contacts snapshot you can see that this id does not exist
Contacts
How can I get all the contacts? Can you help me?
I have found the solution and I answer myself, in case someone comes here looking for a solution.
With the query /contacts, I retrieved the contacts with a limit of 30 and I was only showing myself the anonymous contacts.
In order to get all the non-anonymous contacts out, you have to run this query:
{{MauticDomain}}/api/contacts?search=!is:anonymous&limit=0
I hope more people will find it helpful
This is how you can get non anonymous contacts in nodejs
const contacts = await mautic.contacts.listContacts({ search:'!is:anonymous'})

SoftLayer API: how to create a ticket

I am trying to create a SoftLayer ticket on behalf of customers, want to set assignedUserId and assignedEmployeeId, make the first update by employee id.
I tried to use client['Ticket'].createStandardTicket, but assignedEmployeeId was not set properly. Do you know how to get this implemented? Thank you so much in advance.
Unfortunately you won’t be able to assign an employee id since this parameter isn’t available in: http://sldn.softlayer.com/reference/datatypes/SoftLayer_ticket http://sldn.softlayer.com/reference/services/SoftLayer_Ticket/createStandardTicket
http://sldn.softlayer.com/reference/services/SoftLayer_Ticket/createAdministrativeTicket
This kind of tasks are managed by employees and it is an internal subject.

How to create Multiple Users in Symfony2?

I am working on symfony project. Project is for posting job , and hiring employees.
I have created Admin and front end successfully.
Now what I want is to add multiple user in front end. I have 4 different type of users in front end.
Job Seeker (Candidate looking for new job)
Employees ( who post a job and hiring job seeker candidate)
Premium Employees ( who post a job and hiring job seeker candidate and have some more functionality then Employees )
Guest ( who can only see all the job seeker , Employees , Preminum Employees post )
I just need flow of this functionality after that I will implement all this myself.
So how can I implement this Functionality in Front end ?
I think according to what you try to do. You could give a try to pugx.
You will probably have to change your actual User but it could help you a lot.
PUGXMultiUserBundle
An other way would be to have one user Entity with many ROLE corresponding to what your user can do or not.
see Symfony Authorization documentation on the matter

Linkedin REST API - likes and comments

We are using Linkedin REST API and we need to get the number of likes and comments from owned companies updates. The method get-updates always returns the last 3 likes/comments and also the total is 3, even if you have more than 3. So in order to get all the likes/comments of the updates we have to make a query to each update because that way we get all the likes/comments. But this is not a good method because if I have 100 updates then I have to do 101 api calls and a user has a limit of 700 per day, so they are very easily get depleted. We really find it hard to believe there is no way your API doesn't solve the n+1 problem. So how can it be done?
Thank you!
if you hit this URL -> "https://api.linkedin.com/v1/companies/{id}/company-statistics", provided if you have the id of the company page.
you can get the likes,clicks,impressions,engagement,shares,comments in month break up wise.
For more info
LinkedIn API Company statistics data