Closed kauffj closed 3 years ago
The basic flow is
Users choose a LBRY channel name
Call `yt/new` on internal-apis
https://github.com/lbryio/lbry-desktop/blob/master/ui/page/youtubeSync/view.jsx#L67-L75
On success, it will return a google url that you redirect to (where you choose your youtube account and authorize it)
When they are done with authorizing, google will redirect back to the url you pass to `yt/new`
The desktop app redirects to a page that polls `yt/transfer` to display info about the current transfer status (pending, in progress, etc).
https://github.com/lbryio/lbry-desktop/blob/master/ui/component/youtubeTransferStatus/view.jsx
Also helpful https://github.com/lbryio/lbryinc/blob/master/src/constants/youtube.js
@nikooo777 or @seanyesmunt please give Akin the rundown on these APIs