Share via

SendChannel message API

Nestor Wilke 0 Reputation points
2023-02-02T20:44:22.6033333+00:00

Hi I am working on sending alerts to Teams Channel on an issue reported.

I would like to work this with API through Java program. I have created app and has given application permissions.

Thanks,

Nestor

Microsoft Security | Microsoft Graph

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-04-20T15:18:50.3366667+00:00

    Hi Nestor Wilke,
    Thank you for reaching out.

    I believe you are l referring to change notifications for teams and channels through Graph API, https://learn.microsoft.com/en-us/graph/teams-changenotifications-team-and-channel, You can get notified whenever a team or channel is created, updated, or deleted.
    Here is the reference KP article,https://learn.microsoft.com/en-us/graph/teams-changenotifications-team-and-channel,
    Here is the corresponding JAVA method;-

    GraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
    
    SubscriptionCollectionPage subscriptions = graphClient.subscriptions()
    	.buildRequest()
    	.get();
    

    Adding the Java apps tutorial link as well; - https://learn.microsoft.com/en-us/graph/tutorials/java?tabs=aad
    Let me know if that answers your question.
    Thanks.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.