View the Project on GitHub elements-storage/elements-sdk-swift
All URIs are relative to https://elements.local
Method | HTTP request | Description |
---|---|---|
deleteSlackConnection | DELETE /api/2/integrations/slack/{id} | |
deleteTeamsConnection | DELETE /api/2/integrations/teams/{id} | |
getAllSlackConnections | GET /api/2/integrations/slack | |
getAllTeamsConnections | GET /api/2/integrations/teams | |
getSlackChannels | GET /api/2/integrations/slack/{id}/channels | |
getSlackConnection | GET /api/2/integrations/slack/{id} | |
getSlackEmoji | GET /api/2/integrations/slack/{id}/emoji | |
getSlackUsers | GET /api/2/integrations/slack/{id}/users | |
getTeamsChannels | GET /api/2/integrations/teams/{id}/channels | |
getTeamsConnection | GET /api/2/integrations/teams/{id} | |
getTeamsUsers | GET /api/2/integrations/teams/{id}/users | |
patchSlackConnection | PATCH /api/2/integrations/slack/{id} | |
patchTeamsConnection | PATCH /api/2/integrations/teams/{id} | |
sendSlackMessage | POST /api/2/integrations/slack/{id}/message | |
sendTeamsMessage | POST /api/2/integrations/teams/{id}/send-message | |
startSlackConnectionFlow | GET /api/2/integrations/slack/connect | |
startSlackConnectionTokenRefreshFlow | GET /api/2/integrations/slack/{id}/refresh-token | |
startTeamsConnectionFlow | GET /api/2/integrations/teams/connect | |
startTeamsConnectionTokenRefreshFlow | GET /api/2/integrations/teams/{id}/refresh-token | |
updateSlackConnection | PUT /api/2/integrations/slack/{id} | |
updateTeamsConnection | PUT /api/2/integrations/teams/{id} |
open class func deleteSlackConnection( id: Int) -> Promise<Void>
None
(read) / system:admin-access
(write)// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this Slack connection.
IntegrationsAPI.deleteSlackConnection(id: id).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this Slack connection. |
Void (empty response body)
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func deleteTeamsConnection( id: Int) -> Promise<Void>
None
(read) / system:admin-access
(write)// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this Teams connection.
IntegrationsAPI.deleteTeamsConnection(id: id).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this Teams connection. |
Void (empty response body)
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getAllSlackConnections( ordering: String? = nil, limit: Int? = nil, offset: Int? = nil) -> Promise<[SlackConnection]>
None
(read) / system:admin-access
(write)// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let ordering = "ordering_example" // String | Which field to use when ordering the results. (optional)
let limit = 987 // Int | Number of results to return per page. (optional)
let offset = 987 // Int | The initial index from which to return the results. (optional)
IntegrationsAPI.getAllSlackConnections(ordering: ordering, limit: limit, offset: offset).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
ordering | String | Which field to use when ordering the results. | [optional] |
limit | Int | Number of results to return per page. | [optional] |
offset | Int | The initial index from which to return the results. | [optional] |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getAllTeamsConnections( ordering: String? = nil, limit: Int? = nil, offset: Int? = nil) -> Promise<[TeamsConnection]>
None
(read) / system:admin-access
(write)// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let ordering = "ordering_example" // String | Which field to use when ordering the results. (optional)
let limit = 987 // Int | Number of results to return per page. (optional)
let offset = 987 // Int | The initial index from which to return the results. (optional)
IntegrationsAPI.getAllTeamsConnections(ordering: ordering, limit: limit, offset: offset).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
ordering | String | Which field to use when ordering the results. | [optional] |
limit | Int | Number of results to return per page. | [optional] |
offset | Int | The initial index from which to return the results. | [optional] |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getSlackChannels( id: Int) -> Promise<[SlackChannel]>
tasks:manage
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this Slack connection.
IntegrationsAPI.getSlackChannels(id: id).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this Slack connection. |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getSlackConnection( id: Int) -> Promise<SlackConnection>
None
(read) / system:admin-access
(write)// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this Slack connection.
IntegrationsAPI.getSlackConnection(id: id).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this Slack connection. |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getSlackEmoji( id: Int) -> Promise<[SlackEmoji]>
tasks:manage
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this Slack connection.
IntegrationsAPI.getSlackEmoji(id: id).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this Slack connection. |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getSlackUsers( id: Int) -> Promise<[SlackUser]>
tasks:manage
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this Slack connection.
IntegrationsAPI.getSlackUsers(id: id).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this Slack connection. |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getTeamsChannels( id: Int) -> Promise<[TeamsRecipient]>
tasks:manage
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this Teams connection.
IntegrationsAPI.getTeamsChannels(id: id).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this Teams connection. |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getTeamsConnection( id: Int) -> Promise<TeamsConnection>
None
(read) / system:admin-access
(write)// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this Teams connection.
IntegrationsAPI.getTeamsConnection(id: id).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this Teams connection. |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getTeamsUsers( id: Int) -> Promise<[TeamsRecipient]>
tasks:manage
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this Teams connection.
IntegrationsAPI.getTeamsUsers(id: id).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this Teams connection. |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func patchSlackConnection( id: Int, slackConnectionPartialUpdate: SlackConnectionPartialUpdate) -> Promise<SlackConnection>
None
(read) / system:admin-access
(write)// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this Slack connection.
let slackConnectionPartialUpdate = SlackConnectionPartialUpdate(name: "name_example") // SlackConnectionPartialUpdate |
IntegrationsAPI.patchSlackConnection(id: id, slackConnectionPartialUpdate: slackConnectionPartialUpdate).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this Slack connection. | |
slackConnectionPartialUpdate | SlackConnectionPartialUpdate |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func patchTeamsConnection( id: Int, teamsConnectionPartialUpdate: TeamsConnectionPartialUpdate) -> Promise<TeamsConnection>
None
(read) / system:admin-access
(write)// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this Teams connection.
let teamsConnectionPartialUpdate = TeamsConnectionPartialUpdate(name: "name_example") // TeamsConnectionPartialUpdate |
IntegrationsAPI.patchTeamsConnection(id: id, teamsConnectionPartialUpdate: teamsConnectionPartialUpdate).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this Teams connection. | |
teamsConnectionPartialUpdate | TeamsConnectionPartialUpdate |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func sendSlackMessage( id: Int, slackMessage: SlackMessage) -> Promise<Void>
tasks:manage
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this Slack connection.
let slackMessage = SlackMessage(recipient: "recipient_example", text: "text_example", username: "username_example", emoji: "emoji_example") // SlackMessage |
IntegrationsAPI.sendSlackMessage(id: id, slackMessage: slackMessage).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this Slack connection. | |
slackMessage | SlackMessage |
Void (empty response body)
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func sendTeamsMessage( id: Int, teamsMessage: TeamsMessage) -> Promise<Void>
tasks:manage
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this Teams connection.
let teamsMessage = TeamsMessage(recipient: "recipient_example", text: "text_example") // TeamsMessage |
IntegrationsAPI.sendTeamsMessage(id: id, teamsMessage: teamsMessage).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this Teams connection. | |
teamsMessage | TeamsMessage |
Void (empty response body)
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func startSlackConnectionFlow( ordering: String? = nil, limit: Int? = nil, offset: Int? = nil) -> Promise<Void>
system:admin-access
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let ordering = "ordering_example" // String | Which field to use when ordering the results. (optional)
let limit = 987 // Int | Number of results to return per page. (optional)
let offset = 987 // Int | The initial index from which to return the results. (optional)
IntegrationsAPI.startSlackConnectionFlow(ordering: ordering, limit: limit, offset: offset).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
ordering | String | Which field to use when ordering the results. | [optional] |
limit | Int | Number of results to return per page. | [optional] |
offset | Int | The initial index from which to return the results. | [optional] |
Void (empty response body)
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func startSlackConnectionTokenRefreshFlow( id: Int) -> Promise<Void>
system:admin-access
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this Slack connection.
IntegrationsAPI.startSlackConnectionTokenRefreshFlow(id: id).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this Slack connection. |
Void (empty response body)
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func startTeamsConnectionFlow( ordering: String? = nil, limit: Int? = nil, offset: Int? = nil, team: String? = nil) -> Promise<Void>
system:admin-access
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let ordering = "ordering_example" // String | Which field to use when ordering the results. (optional)
let limit = 987 // Int | Number of results to return per page. (optional)
let offset = 987 // Int | The initial index from which to return the results. (optional)
let team = "team_example" // String | (optional)
IntegrationsAPI.startTeamsConnectionFlow(ordering: ordering, limit: limit, offset: offset, team: team).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
ordering | String | Which field to use when ordering the results. | [optional] |
limit | Int | Number of results to return per page. | [optional] |
offset | Int | The initial index from which to return the results. | [optional] |
team | String | [optional] |
Void (empty response body)
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func startTeamsConnectionTokenRefreshFlow( id: Int, team: String? = nil) -> Promise<Void>
system:admin-access
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this Teams connection.
let team = "team_example" // String | (optional)
IntegrationsAPI.startTeamsConnectionTokenRefreshFlow(id: id, team: team).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this Teams connection. | |
team | String | [optional] |
Void (empty response body)
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func updateSlackConnection( id: Int, slackConnectionUpdate: SlackConnectionUpdate) -> Promise<SlackConnection>
None
(read) / system:admin-access
(write)// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this Slack connection.
let slackConnectionUpdate = SlackConnectionUpdate(name: "name_example") // SlackConnectionUpdate |
IntegrationsAPI.updateSlackConnection(id: id, slackConnectionUpdate: slackConnectionUpdate).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this Slack connection. | |
slackConnectionUpdate | SlackConnectionUpdate |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func updateTeamsConnection( id: Int, teamsConnectionUpdate: TeamsConnectionUpdate) -> Promise<TeamsConnection>
None
(read) / system:admin-access
(write)// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ElementsSDK
let id = 987 // Int | A unique integer value identifying this Teams connection.
let teamsConnectionUpdate = TeamsConnectionUpdate(name: "name_example") // TeamsConnectionUpdate |
IntegrationsAPI.updateTeamsConnection(id: id, teamsConnectionUpdate: teamsConnectionUpdate).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Name | Type | Description | Notes |
---|---|---|---|
id | Int | A unique integer value identifying this Teams connection. | |
teamsConnectionUpdate | TeamsConnectionUpdate |
[Back to top] [Back to API list] [Back to Model list] [Back to README]