Azure Bing Web Search api , retrieve metadata - bing

There's any way to get meta-data that's shown on bing website on Bing Web Search api?
I mean, extract from api response (title, connections, industry, location) information like is in website:
The api response only returns snippet info and this meta-data is not returned.
{
"id": "https://api.cognitive.microsoft.com/api/v7/#WebPages.1",
"name": "Foo Bar - Thing - Thing Company | LinkedIn",
"url": "https://es.linkedin.com/in/foo-bar-041756111",
"isFamilyFriendly": true,
"displayUrl": "https://es.linkedin.com/in/foo-bar-041756111",
"snippet": "Ve el perfil de Foo Bar en LinkedIn, la mayor red profesional del mundo. Foo tiene 2 empleos empleos en su perfil. Ve el perfil completo en LinkedIn y descubre los ...",
"dateLastCrawled": "2018-05-02T07:20:00.0000000Z",
"language": "es"
}

This information seems that it's not returned by API and there's no parameter to add this information in responses right now, tested on API v7.0.

Related

Youtube API v3 PHP - TAgs order changed when using VideoSnippet->setTags(array)

When we upload a video to Youtube Studio using the PHP API, the tags order are changed.
This is the string, which we explode with "," before assigning to VideoSnippet->setTags(array)
ZinkiaTV,dibujos,pocoyo,dibujos animados,pato,caricaturas,pocoyo en español,nina,pocoyo en español nuevos capítulos,dibujos infantiles,elly,dibujos animados infantiles en español,videos para niños,dibujos animados completos en español,capítulos completos,dibujos animados para niños,dibujos animados en español,pocoyo y nina,dibujos animados para bebes,dibujos para niños,loula,videos de pocoyo,pocoyo youtube,videos para dormir,caricaturas para niños
After uploading the video, Youtube Studio show this TAGs order
ScreenShot_YoutubeStudio_Tags
I have checked the source code of the API, but I think the order is changed when the data is received by the server.
Is this a bug? Thanks in advance

microsoft not sending change notifications. Api callRecords

I using azure function for this. If I send a post with the public URL of the function, I can't see the call ids that microsoft sends me. I only get the notification from Microsoft that it accepts the endpoint for sending change notifications but I don't see these ids. I read in other forums that calls can take a while to arrive but hours go by without sending me the caller ID. Do you know if there is anything new with this?
{
"changeType": "updated,created",
"notificationUrl": "https://subscriptions-treeam.azurewebsites.net/api/GraphNotificationHook?",
"resource": "/communications/callRecords",
"expirationDateTime": "2022-08-24T11:00:00.0000000Z",
"clientState": "secretClientState"
}
The response of MS is this
{
"#odata.context": "https://graph.microsoft.com/v1.0/$metadata#subscriptions/$entity",
"id": "b3x1w7db-9e71-4t91-b26g-6f5d1f502fc7",
"resource": "/communications/callRecords",
"applicationId": "9bg5x3b5-e859-2ec4-ac02-7g895f956da0",
"changeType": "created,updated",
"clientState": "secretClientState",
"notificationUrl": "https://subscriptions-treeam.azurewebsites.net/api/GraphNotificationHook?",
"notificationQueryOptions": null,
"lifecycleNotificationUrl": null,
"expirationDateTime": "2022-08-24T11:00:00Z",
"creatorId": "fr73bf06-f07a-37g9-7dde-85ee33b21tf2",
"includeResourceData": null,
"latestSupportedTlsVersion": "v1_2",
"encryptionCertificate": null,
"encryptionCertificateId": null,
"notificationUrlAppId": null
}
now, I see a lot of log but not the ID of the calls that the users of a tenan make from Microsoft teams.
Logs from function
2022-08-22T19:29:45.522 [Information] La función de activación HTTP de C# procesó una solicitud
2022-08-22T19:29:45.523 [Information] [null]
2022-08-22T19:29:45.523 [Information] Executed 'GraphNotificationHook' (Succeeded, Id=703350f0-2081-489c-99bf-be6364bdebce, Duration=1ms)
2022-08-22T19:29:45.634 [Information] Executing 'GraphNotificationHook' (Reason='This function was programmatically called via the host APIs.', Id=1c4d9739-b42d-32ff-be60-b1db1f7439f2)
i try calls from MS teams and i register the URL in the app registration
enter image description here
I don't know what I'm missing to receive notifications from microsoft teams.
the code in github here: https://github.com/wolarte/GraphNotificationHook

account linking: The agent returned an empty TTS

I define the account linking properties for french.
It works correctly using french (canada): the response after invoking my app is: " Il semble que votre compte The Keys ne soit pas encore associé. "
But when using french (france), The response in the simulator is: " The agent returned an empty TTS. "
What is the reason of that ?
In my case it wasn't related to the account linking feature.
My server was simply unavailable (ERR_CONNECTION_TIMED_OUT).

Classic ASP - Replace unicode characters from Facebook json feed

I'm working on an old classic asp site. We are importing Facebook feeds with the Graph API from Facebook. All done by importing the json feed.
In the Graph API Explorer from Facebook all characters in the feed look OK.
However when I import or show the contents of the feed on the screen I get something like this:
Tra le province di Modena e Reggio Emilia, ai piedi delle prime colline appenniniche, c\u2019\u00e8 una terra speciale. Resa speciale dai suoi abitanti che hanno saputo trasformarla in energia creativa. Parallela alla romana via Emilia che attraversa tutta l\u2019Emilia Romagna c\u2019\u00e8 un\u2019altra strada che da Maranello\u2026
If I use this tool (converter) (where it says "Converts Unicode Entities to Unicode Text") to convert the string to normal text I get normal text:
Tra le province di Modena e Reggio Emilia, ai piedi delle prime colline appenniniche, c’è una terra speciale. Resa speciale dai suoi abitanti che hanno saputo trasformarla in energia creativa. Parallela alla romana via Emilia che attraversa tutta l’Emilia Romagna c’è un’altra strada che da Maranello…
How can I achieve this with classic ASP?

Facebook Graph Basic Root Information returns false (Likes)

I'm trying to access the 'likes' from the following facebook page:
http://graph.facebook.com/EncuentrodeNoviosMexico
And I get the following response:
"false"
Trying to access other pages and I do get the information.
The idea is to get the 'Likes' through php or jquery/javascript (I would think through a JSON).
Questions:
1. Why does it return "false"? (Cause)
2. Is there a solution to it or an alternative to get the 'likes' from the page? (Posible Solutions)
For some reason, you need an access token to get your page's information. That is not true for some other pages like https://graph.facebook.com/cocacola.
You can do this by appending &access_token=... to the end of your URL.
You probably need to visit your page's Manage section and edit the settings to make it publicly visible. I'm guessing if you have country or age restrictions on your page, Facebook won't show it to anyone except for authenticated users.
The Graph API Explorer returns the following with "likes" included. Can you revise your question to include the code that does not work properly?
{
"id": "147931875220982",
"name": "Encuentro de Novios México",
"picture": "http://profile.ak.fbcdn.net/hprofile-ak-snc4/203568_147931875220982_3653853_s.jpg",
"link": "http://www.facebook.com/EncuentrodeNoviosMexico",
"likes": 1135,
"category": "Education",
"is_published": true,
"website": "www.encuentrodenovios.org",
"username": "EncuentrodeNoviosMexico",
"about": "El ENCUENTRO DE NOVIOS es un Movimiento Católico que ofrece la experiencia de un Fin de Semana, para todas aquellas parejas de novios que deseen tener una preparación pre y post matrimonial, para vivir su relación como pareja sacramentada.",
"can_post": true,
"talking_about_count": 4,
"type": "page"
}
There were restrictions by country; when I eliminated them I got full access to the graph API.
Thanks to everyone.
If they wouldn't have granted me access to the page I would have had to do what cpilko suggested. (Thanks cpilko)