HERE Incident API Status Options - here-api

I am using the HERE Incident API, but am battling to find what status results can be returned. I have been through all the online documentation and don't seem to find the various results that can be returned for TRAFFICITEMSTATUSSHORTDESC. I see ACTIVE in the results, but that is the only one I have ever seen. Please can someone advise.

I guess this is what you are looking for:
https://developer.here.com/documentation/traffic/dev_guide/topics/resource-parameters-incidents.html
The accepted status values include: active, inactive, deleted, and expired.

Related

Using LinkedIn API to retrieve advertising reports

I'm working on a simple app to programmatically retrieve ads performance within Linkedin. I have general API experience but this is the first time i get my feet wet with the Linkedin API.
One example from Linkedin API documentation suggest something that would get me started:
GET https://api.linkedin.com/v2/adAnalyticsV2?q=analytics&dateRange.start.month=1&dateRange.start.day=1&dateRange.start.year=2016&timeGranularity=MONTHLY&pivot=CREATIVE&campaigns=urn:li:sponsoredCampaign:112466001
I am encountering two problems:
First this example implies that you already know the campaign ID. However I am unable to find a way to retrieve a list of campaign ID's for a given account.
Second, if I manually pull a campaign ID, I receive an error: "{"serviceErrorCode":2,"message":"Too many fields requested. Maximum possible fields to request: 20","status":400}". Pretty clear error.
A little research tells me that by adding the parameter "&fields=" I will be able to limit my query to less than 20 field (I really need only a dozen anyway) but I can't find and documentation regarding the names of the fields available.
Any help or pointer will be appreciated.
please refer the link below scroll down where you ill see the field names mentioned as metrics , these are the fields.
https://learn.microsoft.com/en-us/linkedin/marketing/integrations/ads-reporting/ads-reporting?tabs=http#analytics-finder

Get campaign name from LinkedIn API

I am trying to get in touch with LinkedIn support for the past month now, unfortunately I had no luck getting to the dev team through the account management.
We are using a reporting tool to pull LinkedIn campaign data via their API. We would like to pull Campaign Names which doesn't seem to be possible at the moment referencing https://developer.linkedin.com/docs/ref/v2/ads/adcampaigns#get
However, is there any kind of way to retrieve the Campaign Names (ID is making it really hard for us to identify campaigns on the fly)? It seems like such a basic request, I find it hard to believe LinkedIn has no way of doing this.
Thanks in advance!!
A little further down that page you referenced is a section called "FINDER" with this:
https://api.linkedin.com/v2/adCampaignsV2?q=statuses&statuses=ACTIVE
Options are ACTIVE, PAUSED, ARCHIVED, COMPLETED, OR CANCELLED
You will get the "name":"MY_CAMPAIGN_NAME" field there. That's the only place I've found it so far.

MS Cognitive Services - Face API - Person Group Training Status always returns "The operation was failed"

When I try to get the Person Group Training Status (https://dev.projectoxford.ai/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395247), the API always returns "The operation was failed" (but the train https://dev.projectoxford.ai/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395249 returns 202).
Do someone know what can cause this error?
Thanks for your help!
Here is my take.
After you create a person group, you need to create a person and place him/her in the person group.
Once a person is created, you can upload their photos and then, you can train a person group to process it.
/train returning a 202 indicates that training successfully started
/training returns various error codes and messages indicating what went wrong (the documentation link you included), and "operation failed" usually indicates something was wrong with the HTTP request.
It would be really helpful to see the code to debug further :-)

Google calendars API error - tooManyCalendarsRequested

Getting this error, and for the life of me I can't find any documentation online for how many is too many. Anyone have an idea, or a way to find out?
Here's the official documentation: https://developers.google.com/google-apps/calendar/v3/reference/freebusy/query
You can use this function to set the maximum id, read the documentation:
Maximal number of calendars for which FreeBusy information is to be provided. Optional.
I checked it worked well with 50 items.
req.setCalendarExpansionMax(50);
Here's a link to the documentation.
The maximum calendars you can request is 20.
(i've made my own tests)

How to get LinkedIn Company status update comments using API?

I am trying to get comments to one particular Company status update using update-key. It is not documented in the manual, but when trying to call the link similar to Network status update link I can get some data, but the result data is not correct (it's addressed to another post).
The link is : http://api.linkedin.com/v1/companies/{company_id}/updates/key={update-key}/update-comments .
I am just wondering whether it is possible using API and whether this feature is in plans?
Reading Company updates is available in preview mode as of this answer:
https://developer.linkedin.com/reading-company-updates
However, there does not appear to be any published support for pulling a particular update by it's id. You can specify the type, and paginate through the results, but pulling a particular update does not appear to be supported, per the docs linked above.
This is actually possible, however the LinkedIn API documentation seems to have some typos in the examples:
v1/companies/{company_id}/updates/key={update_key}
I was able to get this to work!

Resources