Skip to content

Commit

Permalink
Repair vkApi
Browse files Browse the repository at this point in the history
  • Loading branch information
Fagorym committed Mar 25, 2024
1 parent 1c88547 commit 05f9317
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/main/java/ru/nsu/fit/directors/userservice/api/VkApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
@RequiredArgsConstructor
@Slf4j
public class VkApi {
private final WebClient vkApiClient;
//private final WebClient vkApiClient;

public VkNotificationResponse sendNotification(RequestVkNotification requestVkNotification) {
log.info("Send vk notification {}", requestVkNotification);
ParameterizedTypeReference<VkNotificationResponse> reference = new ParameterizedTypeReference<>() {};
return vkApiClient.post()
ParameterizedTypeReference<VkNotificationResponse> reference = new ParameterizedTypeReference<>() {
};
/*return vkApiClient.post()
.uri(uriBuilder -> uriBuilder.path("/method/notifications.sendMessage")
.queryParam("v", "5.154")
.queryParam("access_token", requestVkNotification.access_token())
Expand All @@ -26,9 +27,12 @@ public VkNotificationResponse sendNotification(RequestVkNotification requestVkNo
.build())
.retrieve()
.toEntity(reference)
.log()
.log()
.block()
.getBody();
*/
throw new RuntimeException("Not yet implemented");
}

}

0 comments on commit 05f9317

Please sign in to comment.