zS1L3NT / ts-npm-ytmusic-api

A type-safe and basic YouTube Music API wrapper
https://npmjs.com/package/ytmusic-api
GNU General Public License v3.0
81 stars 17 forks source link

[FEATURE]: Authenticated Request Support #12

Closed Morgul closed 1 year ago

Morgul commented 1 year ago

Is this feature request related to a problem? If so, please elaborate

Currently (unless I missed it) there is no way to make authenticated requests. Most other ytm apis have support for a cookies.txt file, or a header string.

Tell me about the feature you are requesting!

It would be nice to be able to, for example, pull my private playlists because I'm authenticated. There's other features that could be added (playlist creation/manipulation, etc).

Additional Information

Currently in my little project I have to use two different apis because the other one doesn't have all the same metadata this one has (or it's broken) meanwhile this one doesn't let me access things that require authentication. It would be nice to see this expand so I don't need to use the other one.

zS1L3NT commented 1 year ago

I don't mind giving this feature a try. For now, I'm extremely busy so I'll start working on this in August. Pull Requests are welcome tho :D

zS1L3NT commented 1 year ago

Version v4.2.0 has been released with this feature, here is a link to the documentation for how to inject your custom cookies

jmanaside commented 9 months ago

Hello @zS1L3NT the documentation seems down. was it moved?

zS1L3NT commented 9 months ago

Hi, I shut it down because I thought the type definitions and comments for the functions in the code were enough and the website was quite unnecessary