fr.funixgaming.api.twitch.client.clients.FunixGamingTwitchStreamClient Maven / Gradle / Ivy
package fr.funixgaming.api.twitch.client.clients;
import com.funixproductions.api.twitch.reference.client.dtos.responses.TwitchDataResponseDTO;
import com.funixproductions.api.twitch.reference.client.dtos.responses.channel.chat.TwitchChannelChattersDTO;
import com.funixproductions.api.twitch.reference.client.dtos.responses.channel.stream.TwitchStreamDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
@FeignClient(
name = "FunixGamingTwitchStreamClient",
url = "${funixgaming.api.twitch.app-domain-url}",
path = "/twitch/stream"
)
public interface FunixGamingTwitchStreamClient {
@GetMapping
TwitchDataResponseDTO getStream(@RequestParam(defaultValue = "funixgaming") String channel);
@GetMapping("chatters")
TwitchDataResponseDTO getChatters(@RequestParam(defaultValue = "funixgaming") String channel);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy