hey thx for the fast reply but there is no change with or without $
on my other fuction Channel by ID
public Channel GetChannel(string channel)
{
var request = GetRequest(“channels/{channel}”, Method.GET);
request.AddUrlSegment(“channel”, channel);
var response = restClient.Execute(request);
return response.Data;
}
it works fine
RestClient comes from RestSharp https://github.com/restsharp/RestSharp and get Created in the Constructor of TwitchReadOnlyClient
public TwitchReadOnlyClient(string clientID, string url = TwitchHelper.twitchApiUrl)
{
restClient = new RestClient(url);
restClient.DefaultParameters.Clear();
restClient.AddDefaultHeader("Accept", TwitchHelper.twitchAcceptHeader);
restClient.AddDefaultHeader("Client-ID", clientID);
}
and GetRequest is a simple Interface
Interface:
public interface ITwitchClient
{
RestRequest GetRequest(string url, Method method);
}
Main class:
public RestRequest GetRequest(string url, Method method)
{
return new RestRequest(url, method);
}
RestRequest also comes from RestSharp