Skip to content

somemove/mstf-teams-kt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microsoft Teams client for Kotlin (Java)

Release

Install

// Define the dependency version
buildscript {
	ext {
		msftTeamsVersion = 'THE_VERSION'
	}
}
// Add the Jitpack repository
repositories {
	maven { url 'https://jitpack.io' }
}
// Add the dependency
dependencies {
	compile "com.github.somemove:mstf-teams-kt:$msftTeamsVersion"
}

Usage

Kotlin

val message = ConnectorMessage(title = "Title", text = "The message text...")

val webhookURL : String = "https://..."
val client : Teams = Teams().with(webhookURL)

val result : Boolean = client.publish(message)

Java

ConnectorMessage message = new ConnectorMessage()
message.setTitle("Test");
message.setText("Test Message");

String webhookURL = "https://...";
Teams client = new Teams().with(webhookURL);

boolean result = client.publish(message);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published