the thing is this API only accepts User ID as a int and channel ID as well, but I want to check this information only with the username and channel name like this:
thank you so much, this helps, the only thing I see with this solution is we have to do at least two request to the api one: to get the user id of the username you want to check and two: to check the relationship between that userid and yours, so, if you want to check a bunch of username maybe your application will be a little be slow
but that is something that I have to handle, right?
You can check up to 100 user’s IDs at a time, so it’s significantly less than 2 requests for each follow relationship check as the number of users checked grows.
If you really can’t spare the extra request, you could always use Kraken v3 until it gets removed at the end of the year. Although the existing documentation has since been removed from the github repository.
I would do what @3ventic suggested, and then cache the id/login pair for future requests.
Yes, I would do that too,
I had that issue because I have to check at least 5 users at the same time, so it will be 5 requests, nothing that my app can handle, so it is OK