-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various Helix Endpoints return the users DisPlaYName instead of login #3
Comments
The problem also exists with the follows endpoint For example: https://api.twitch.tv/helix/users/follows?to_id=26610234
Both |
Issue also exists on
|
Issues also exists on "Get Clips"
|
HLX-1333 |
The new https://dev.twitch.tv/docs/api/reference#get-channel-information also has this issue, for example
|
https://dev.twitch.tv/docs/extensions/reference/#get-live-channels-with-extension-activated Example use case: https://twitch.extensions.barrycarlyon.co.uk/elitetrack/ To show streamers live with my extension and link to their channel, I have to do two requests, one to live_activated then a second to users to get the login for link/embed purposes |
@BarryCarlyon so what is the solution for generating URLS via this API: https://dev.twitch.tv/docs/api/reference#get-users? If I'm reading correctly, display_name is not a reliable parameter (korean characters, etc. possible), so I should leverage the login parameter instead? That is to say if I got Essentially my use case is trying to get the URL to the authenticated user's profile. |
Correct, the users API is the ONLY API that returns the actual login, where the login is used for URLs. If you called the streams API, you get a list of Display Names then have to do a lookup against the users API to get the logins for construction URLs/links to channel. Two lookups where one should of suffice. |
https://dev.twitch.tv/docs/api/reference/#get-stream-markers Returns dISPlayNAME instead of user login for the creating user of the marker |
Example use case: https://barrycarlyon.github.io/twitch_misc/examples/browse_following/ I have to do one call to get the streams of the people I follow. |
EventSub has now contracted the virus for saying "name" and sending |
Eventsub fixed it on eventsub \o/ |
…kuped as the streams API has the login returned as user_name
As per todays documentation and API update noted in the change log https://dev.twitch.tv/docs/change-log The following endpoints no longer suffer from GitHub issue 3.
Most notably omitted at this time are the subscription related endpoints and extension live_activated_channels But not longer for streams do we need to fetch users to get the username to link with! \o/ |
Channel editors has the virus! https://dev.twitch.tv/docs/api/reference#get-channel-editors |
And the new Get Extension Live Channels has it too which replaced extension live_activated_channels https://dev.twitch.tv/docs/api/reference#get-extension-live-channels |
Get Extension Live Channels and Get Channel Editors currently seem to be correct as per our documentation. Behavior likely wont change as |
Brief description
Streams API returns the
user_name
as the usersdisplay_name
instead.Meaning for people building a embed from an API lookup either parse the thumbnail URL for the username, or call the users API to get the correct login name for the embed.
This is particularly a problem for "Korean" Streamers
For example
https://api.twitch.tv/helix/streams?user_id=139470326
Which returns the user_name as
한동숙
which is not valid for building a embed or channel URLHow to reproduce
Call https://api.twitch.tv/helix/streams?user_login=cohhcarnage
Expected behavior
Return "cohhcarnage" as the user_name instead of "CohhCarnage"
And/or extend the endpoint to return both
The text was updated successfully, but these errors were encountered: