Dialogflow Get entities - google-api

I am trying to get entities either through a cURL request or using the nodejs SDK.
According to: https://cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.agent.entityTypes/get
I am supposed to pas in EntityType UUID(or name). Im not able to find my EntityType UUID through the console. Where can I get it
How should I achieve this through the nodejs SDK

we can use this endpoint to list all the UUIDs for all the entities: https://cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.agent.entityTypes/list

Related

Shopify Storefront API 2020-10 (latest) can't fetch quantityAvailable (GraphQL)

For the first time I'm working with Shopify Storefront API (v. 2020-10, latest) and trying out GraphQL (I'm used to REST).
I'm able to get all the products, but if I add the field "quantityAvailable" an error occur:
Field 'quantityAvailable' doesn't exist on type 'ProductVariant'
I'm following the docs where the field is listed,
can you help me understand what am I doing wrong?
Edit #1
I've already enabled "Read inventory of products and their variants" in Storefront API Permissions.
Edit #2
I'm sending a POST request to https://{my-shopify-website}/api/graphql attaching content-type and X-Shopify-Storefront-Access-Token as header
Using the /api/2020-10/graphql end-point allows the usage of quantityAvailable property, but using the unstable end-point /api/graphql doesn't.
This seems more like a Shopify docs or API bug/issue, but the solution is to use the specific version end-point (/api/2020-10/graphql) instead of the unstable one.

How to verify an email is triggered or not when creating an entity in Dynamics crm using the api?

I have to verify an email is successfully triggered or not when an entity created or assigned to someone in the Dynamics crm using the web api. Can someone help me with the api query I can use for this?
You can use this below web api query to fetch the result, if there is an email record created for your scenario then the result will show up.
https://devorgname.crm.dynamics.com/api/data/v8.2/emails?$select=activityid&$filter=_regardingobjectid_value eq <record guid>
You can build such queries in CRM REST Builder or even in Advanced find query to validate and download the fetchxml. You can use XrmToolBox plugins like FetchXml builder to enhance the downloaded fetchxml and test.

api-platform: automatic mercure subscriptions for GraphQL queries

api-platform automatically issues events to a mercure hub when updating resources marked with mercure=true and publishes the topics to listen on in the according GET endpoints. Nice. Is there already an option that I can use in the generated GraphQL endpoints?
The mercure docs say: https://github.com/dunglas/mercure#how-to-use-mercure-with-graphql that mercure should integrate "very well" with any GraphQL API as long as it "returns a corresponding topic URL". But afaik the GraphQL API generated by api-platform doesn't (https://api-platform.com/docs/core/mercure/). Do I miss anything or is this upcoming? Using apollo-vue on the frontend.
To work around I could listen to changes on all entity ids using dedicated EventSource topics on the frontend. I would use an URI template like http://localhost:8080/product_streams/{id} there. But I can't manage to write an uri template that matches only certain ids like: http://localhost:8080/product_streams/{id:123,456,789} to get only updates for streams no 123 456 789 (tried https://uri-template-tester.mercure.rocks/ && https://www.rfc-editor.org/rfc/rfc6570#page-18) with no success :(
Edit: GraphQL subscriptions are now supported by API Platform. Checkout the documentation: https://api-platform.com/docs/master/core/graphql/#subscriptions
API Platform doesn't support GraphQL subscriptions yet.
Adding support for subscriptions using Mercure (that is designed among other things for this use case) is planned, but the work hasn't started yet. Any help is welcome!

DirectLine REST API changed (channelData field is not a string )

According to the DirectLine API documentation, the channelData field in the message object should be a string:
http://docs.botframework.com/sdkreference/restapi-directline/#!/Conversations/Conversations_GetMessages
It used to be the case but since yesterday the API returns a JSON object.
Is this API versioned? It would help to be able to specify a version in the headers or the URL to avoid this kind of breaking change in the future.
No, the API is not versioned, but we will add this so you can control it.

Google Contacts auto filled name but missing from api

I am implementing an api to pull contacts using Google Contacts Api. However, the result is different from what I have on Web version of Google Contacts. I can see name is auto filled when I add a contact by email. However, the name is missing when I pull data from api. Is there a way to get the name like Web version does?

Resources