GV
Size: a a a
GV
Д
Д
DC
.
.
.
Д
Э
D
def httpC = new HTTPBuilder('https://slack.com/api/chat.postMessage')
try {
httpC.post(
headers.'Content-type' = 'application/json,charset=utf-8'
headers.'Authorization' = "Bearer ${access_token}"
body: ["text":"test", "channel": "U0142PGAN30"]
){ response, reader ->
if (response.statusLine.statusCode in [200, 201, 204]) {
serverResponse = reader
return serverResponse
}
}
ch
def httpC = new HTTPBuilder('https://slack.com/api/chat.postMessage')
try {
httpC.post(
headers.'Content-type' = 'application/json,charset=utf-8'
headers.'Authorization' = "Bearer ${access_token}"
body: ["text":"test", "channel": "U0142PGAN30"]
){ response, reader ->
if (response.statusLine.statusCode in [200, 201, 204]) {
serverResponse = reader
return serverResponse
}
}
D
D
ch
def httpC = new HTTPBuilder('https://slack.com/api/chat.postMessage')
try {
httpC.post(
headers.'Content-type' = 'application/json,charset=utf-8'
headers.'Authorization' = "Bearer ${access_token}"
body: ["text":"test", "channel": "U0142PGAN30"]
){ response, reader ->
if (response.statusLine.statusCode in [200, 201, 204]) {
serverResponse = reader
return serverResponse
}
}
D
D
D
D
O