All URIs are relative to https://localhost:9200/graph
| Method | HTTP request | Description |
|---|---|---|
| SendActivityNotification | Post /v1.0/users/{user-id}/teamwork/sendActivityNotification | Send an activity notification to a user |
SendActivityNotification(ctx, userId).ActivityNotification(activityNotification).Execute()
Send an activity notification to a user
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/opencloud-eu/libre-graph-api-go"
)
func main() {
userId := "userId_example" // string | key: id or name of user
activityNotification := *openapiclient.NewActivityNotification(*openapiclient.NewActivityTopic("Source_example", "Value_example"), "ActivityType_example", "TeamsAppId_example") // ActivityNotification | The activity the user is notified about.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.UserTeamworkApi.SendActivityNotification(context.Background(), userId).ActivityNotification(activityNotification).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserTeamworkApi.SendActivityNotification``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| userId | string | key: id or name of user |
Other parameters are passed through a pointer to a apiSendActivityNotificationRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
activityNotification | ActivityNotification | The activity the user is notified about. |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]