Skip to content

Commit

Permalink
fix(#93-add-getSubscriptions-and-getSubscribers-methods): change rela…
Browse files Browse the repository at this point in the history
…tionships method type
  • Loading branch information
y9Kap committed Mar 7, 2024
1 parent 3dce318 commit 2bdbdb4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ internal class FriendsEngine(
suspend fun subscriptions(request: GetSubscriptionsRequest): GetSubscriptionsRequest.Response {
val url = baseUrl / "relationship" / "subscriptions"

val response = httpClient.post(url.string) {
val response = httpClient.get(url.string) {
apiVersion(request.apiVersion)
token(request.token)
parameter("id", request.userId?.string)
Expand All @@ -118,7 +118,7 @@ internal class FriendsEngine(
suspend fun subscribers(request: GetSubscribersRequest): GetSubscribersRequest.Response {
val url = baseUrl / "relationship" / "subscribers"

val response = httpClient.post(url.string) {
val response = httpClient.get(url.string) {
apiVersion(request.apiVersion)
token(request.token)
parameter("id", request.userId?.string)
Expand Down

0 comments on commit 2bdbdb4

Please sign in to comment.