Custom data in Channel and Message level in Microsoft Teams - microsoft-graph-api

How to keep some custom metadata in channel and message level in the Microsoft teams app?

You can store your metadata while posting a Adaptive card but there is a limit to create a payload of card. You can read this data while posting the card submit but we can not store data directly in channel.

Related

Is there a way to get "Members" information for a Youtube channel

There is a relatively new function on Youtube channel called Channel memberships. You need to have at least 30,000 subscribers to enable this function. Members can "join" by sponsoring this channel each month.
I am interested in analyzing this Channel membership and studying user behaviors with this new function. However, when I tried to use Youtube Data API to collect members' information, it says the request is unauthorized.
I was wondering if there is a way to get a channel's sponsoring members' information. I was not sure if it is something that only the channel owner can view (i.e., need to log in using their google account to view this information).
Any help or information would be much appreciated!

How can I associate custom Data with any sent message through Smooch SDK?

I want to enquire how can I send custom data associated with the messages sent through Smooch SDK such as User Id or User Email.
Many Smooch objects including appUsers and messages have an optional metadata JSON property that you can use for this purpose. Note carefully that there are limits on data types allowed in metadata, and on the overall size.
You can include custom message metadata as part of a Post message API call for example, or via any the supported API wrapper libraries.

Is it possible to create a message in a Microsoft Teams Channel via Graph API using an Adaptive Card format (seems limited to Text and HTML)

I'm attempting to create a message in a Teams channel via the Graph API. Teams now supports adaptive cards but it seems we are still limited to either plain text or HTML when creating the message via Graph API (either v1 or beta). Anyone found a way to create this message using Adaptive Cards?
https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/resources/itembody
Via Microsoft Graph, no, not yet. But via the Bot Framework APIs, yes, and it's available today.
More info here: https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/cards/cards#cards-in-bots

Teams chat belong to conversation

I'm using the Microsoft Graph API for my application.
I read that Microsoft Teams chat is stored in the Outlook of the sender.
To retrieve all the Teams Chat I use this request https://graph.microsoft.com/v1.0/me/messages (I know that it also return me all the outlook but I use some filter to return me only Teams Chat).
Now my question is how to know which Chats belong to the same conversation, I did not find in the metadata some property to help me.
The Graph API for reading Teams conversations is not yet available but should be by around the end of June.
The API you are trying to use will not work.
The APIs to read messages from a Microsoft Teams channel are available in preview. I've created a multi-platform .NET Core application that demonstrates its use. You can use it to download all of the messages from a specific channel within a Team, or all the channels in a Team.
https://github.com/tamhinsf/QuickTeams
Here are the underlying APIs that it uses:
To read the messages in a given channel. This will return a paginated list of messages, each with a unique ID.
https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/channel_list_messages
Given a unique message ID, this will enable you to get the replies to the message.
https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/channel_list_messagereplies

Archival lists of most subscribed YouTube accounts?

Is there a way to find the top X YouTube accounts by subscriber count for Y year---say, the top 100 accounts in 2015? I don't see anything in the API docs, and while there are services like SocialBlade and VidStatsX, they don't provide archived lists, and the data is not captured on archive.org.
The standard Analytics API doesn't provide this functionality. You can get data about views, likes, and dislikes, but you must provide one or more channel IDs.
Required Parameters: ids
Identifies the YouTube channel or content owner for which you are
retrieving YouTube Analytics data.
To request data for a YouTube
channel, set the ids parameter value to either channel==MINE or
channel==CHANNEL_ID, where CHANNEL_ID identifies the currently
authenticated user's YouTube channel.
To request data for a YouTube
CMS content owner, set the ids parameter value to
contentOwner==OWNER_NAME, where OWNER_NAME is the CMS user ID for the
user.
Use the Try this API section on the reference page to test the possibilities.

Resources