code: def optOut(self, playback=None, library=None):
          
          params = {}
          if playback is not None:
              params['optOutPlayback'] = int(playback)
          if library is not None:
              params['optOutLibraryStats'] = int(library)
          url = 'https://plex.tv/api/v2/user/privacy'
          return self.query(url, method=self._session.put, data=params)
docs: Opt in or out of sharing stuff with plex.
              See: https://www.plex.tv/about/privacy-legal/