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

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.

Related

Dialogflow Webhook C# integration

What is the Dialogflow webhook format? I want to capture the data in an MVC controller and then respond to the webhook whilst maintaining context. How do I do this in C# with the Dialogflow v2 client library? I haven't found any examples to follow in this language and am unsure how to capture the data.
You can read more about Dialogflow webhook format here. Regarding the Dialoglow v2 client library, it is specifically stating that you don't need to use it and can answer in JSON instead using JObject.
If you want to use Protobuf to lower the overhead and save some traffic you will have to use utilities from idiomatic cloud libraries described in the previous link.
The "Dialogflow V2 client library" is for people who are writing clients that send requests to Dialogflow. Dialogflow calls this a "Detect Intent Request", since you're sending a text string (or audio stream) to Dialogflow and it will determine and process the Intent.
If you're interested in building a Fulfillment webhook that is called when an Intent is matched, then you want to look at the Dialogflow Fulfillment API, which is different. There is no supported library for C# yet, but you can parse and return the JSON. The JSON for V1 and V2 are slightly different (mostly in the names of the fields used, but also occasionally in what the values should be).
You can see the fields for the JSON as well as several examples of the request and response formats. There was also an article on Medium recently posted by a Google Developer Relations member discussing using C# for fulfillment in Dialogflow.

Google Dialogflow API v2 Explorer access_token field

Please forgive me, I am fairly new to the Dialogflow Api (v2.)
I am starting off with testing these API calls using the Google API Explorer utility on the right side of the page.
My question is specifically about the "access_token" field:
Is this supposed to be the JSON authentication file that I downloaded from the Google Cloud Console when I created a new service account?
If not, then where do I find the specific resource I am actually supposed to pass into this field?
Side note: I read in the support section: "Google engineers monitor and answer questions about the Google API Explorer on Stack Overflow using the tag google-apis-explorer." Thank you all in advance for your service/help in this topic!
The access_token field is a higher-level field used across the API by some tooling. In some manual client libraries, you might need to use it, but for the API Explorer utility and for most use-cases, you can ignore it. This is true of most (maybe all) fields under the "Show standard parameters" zippy.
The documentation on the left side should explain the relevant fields you need to fill in to successfully complete a request. Keep in mind that even some of these fields are optional; you can leave them blank if they are not relevant to your goal.

How to add custom fields in json response directive of Alexa custom skill?

I have integrated Alexa Voice Services into my WPF application. Idea is to provide VUI to application. For this I am creating a Lambda function for handling request and to send response back to application. But problem is I am not able to implement or add some of custom fields in Json response so that I can manipulate my application based on that fields.
Is there any way to add custom field to Json response or any other way to archive it?
Thanks.

Dart googleapis 0.35.0 - Google Drive API v3 - fields request parameter

Google Drive API v3 documentation:
Full resources are no longer returned by default. Use the fields query parameter to request specific fields to be returned. If left unspecified only a subset of commonly used fields are returned.
Either there is a fields request (query) parameter in the googleapis Dart library (which I can't find) or the library is useless for Google Drive API v3. Or maybe a workaround?
Looks like the fields need to be added to the URL
https://github.com/dart-lang/googleapis/blob/571f592976b7cf557d94bd0fc61b412fc1087446/generated/googleapis/lib/drive/v3.dart#L87
https://developers.google.com/drive/v3/web/performance#partial
https://www.googleapis.com/demo/v1?key=YOUR-API-KEY&fields=kind,items(title,characteristics/length)
I believe it means that some HTTP requests (in the underlying web api) require a additional ?fields='...' parameter to know what fields to include in the response. That documentation page helpfully gives a list of fields but does not say which requests require the parameter.
I personally find neither the Google api pages nor the Dart Google API libraries documentation to be very helpful, however, the Google OAuth Playground allows all the apis to be executed and tested. I used this tool to figure out what inputs are required for each web request and to make sure my Dart code was getting expected results.
Edit:
Every request in the api MAY include a ?fields='...' parameter, but don't have to.
If left unspecified only a subset of commonly used fields are
returned.
So depending on what you are doing you may not need to specify it.

Is there search-members helper in MailChimp v3?

I've been meaning to use MailChimp API, and since v3 is out already, I'd like to use it. I see there's a search-members helper like in v2 (https://apidocs.mailchimp.com/api/2.0/helper/search-members.php) and what is the endpoint for it?
If you want to get one spesific member by email address you can use this endpoint: Lists Members Instance
Not sure this is what you are looking for, but I was also looking for search-helper just to get one spesific user by email.
"But hey, how it happens, I dont have members id?"
Yes you do, if you have email address of that member you can create the id too. It's just MD5 Hash of lowercased version from that email address.
There is a search-members endpoint now on V3. I believe it was released after the original answer to this question:
http://developer.mailchimp.com/documentation/mailchimp/reference/search-members/
In case the link should change in the future it can be found under the main V3 MailChimp API documentation under the Search Members area.
No, searching members in this way isn't supported in API v3.0.

Resources