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'})
Related
On ebay's Browse API, I'm trying to get only listings that are auctions, but get no results.
For example, I'm trying to get auctions for iphones (or any other keyword), using buyingOptions filter:
https://api.sandbox.ebay.com/buy/browse/v1/item_summary/search?q=iphone&filter=buyingOptions:{AUCTION}
Yet, I get no results.
If I edit the above query, to also include FIXED_PRICE items, I will get only fixed price results:
https://api.sandbox.ebay.com/buy/browse/v1/item_summary/search?q=iphone&filter=buyingOptions:{AUCTION|FIXED_PRICE}
Is it possible to get only auction type items? If so, how?
Thanks.
Switching from sandbox to production api solved the problem.
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
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.
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
Is it possible to fetch users by city or country? I would like to create something very local!
I've checked the available documentation but fail to see any solution to this, so this is a final stretch.
The City and Country properties are not searchable with the provided q parameter in the API, and as this searches over username / description and title you'd return a large number of false positives if it could.
It's unlikely you could over select as mentioned in the comments, as there are just too many users to pull down and then parse.