getWatching method
Returns a movie or episode if the user is currently watching something.
If they are not, it returns no data and a 204 HTTP status code.
id
- User slug
useOAuth
- whether to make the request using OAuth header
🔓 OAuth Optional ✨ Extended Info
Implementation
Future<Watching> getWatching(String id, {bool useOAuth = false, bool extendedFull = false}) async {
if (useOAuth) {
return await _manager._authenticatedGet<Watching>("users/$id/watching", extendedFull: extendedFull);
}
return await _manager._get<Watching>("users/$id/watching", extendedFull: extendedFull);
}