Skip to content

Commit

Permalink
fix(#76-support-auth-header): add meetingId field to request
Browse files Browse the repository at this point in the history
  • Loading branch information
y9Kap committed Oct 22, 2023
1 parent 3c4ca81 commit 38105a4
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,15 @@ internal class MeetingsEngine(
put("pagingId", pagingId?.string)
}

val string = post(url.string, jsonObject, httpClient, request)
val string = httpClient.get(url.string) {
setBody(
TextContent(
text = jsonObject.toString(),
contentType = ContentType.Application.Json
)
)
header("Api-Version", request.apiVersion.int.toString())
}.body<String>()

val response = Json.decodeFromString<ListMeetingsResponse>(string).result

Expand Down Expand Up @@ -204,6 +212,7 @@ internal class MeetingsEngine(
val url = baseUrl / "meetings" / "participants" / "list"

val jsonObject = buildJsonObject {
put("meetingId", request.meetingId.string)
put("amount", request.amount.int)
put("pagingId", request.pagingId?.string)
}
Expand Down

0 comments on commit 38105a4

Please sign in to comment.