deleteSession method

Future deleteSession(
  1. String sessionId
)

If you would like to delete (or "logout") from a session, call this method with a valid session ID.

Parameters

sessionId: if of current session

Implementation

Future<dynamic> deleteSession(String sessionId) async {
  final result = await _v._query(
    'authentication/session',
    postHeaders: {'session_id': sessionId},
    method: HttpMethod.delete,
    deleteBody: {'session_id': sessionId},
  );

  _v._tmdb._logger.infoLog('deleteSession result $result');
  return result;
}