API Docs: Difference between revisions

Jump to navigation Jump to search
118 bytes added ,  12 October 2021
update from Draft
(Merge changes from drafts)
(update from Draft)
Line 66: Line 66:
Get segments for a video with extra privacy
Get segments for a video with extra privacy


<code>sha256HashPrefix</code> is a hash of the YouTube <code>videoID</code>. It should be the first 4 - 32 characters (4 is recommended). This provides extra privacy by potentially finding more than just the video you are looking for since the server not know exactly what video you are looking for.
<code>sha256HashPrefix</code> is a hash of the YouTube <code>videoID</code>. It should be the first 4 - 32 characters (4 is recommended). This provides extra privacy by potentially finding more than just the video you are looking for since the server will not know exactly what video you are looking for.


'''Input''' (URL Parameters):
'''Input''' (URL Parameters):
Line 199: Line 199:


'''Response''':
'''Response''':
<syntaxhighlight lang="js">
<syntaxhighlight lang="ts">
{
{
   Nothing (status code 200)
   Nothing (status code 200)
Line 243: Line 243:
   publicUserID: string // Public userID
   publicUserID: string // Public userID


   value: string[] // Optional, Values to get from userInfo
   values: string[] // Optional, Values to get from userInfo
     // default values are
     // default values are
     // ["userID", "userName", "minutesSaved", "segmentCount", "ignoredSegmentCount",
     // ["userID", "userName", "minutesSaved", "segmentCount", "ignoredSegmentCount",
     // "viewCount", "ignoredViewCount", "warnings", "warningReason", "reputation",
     // "viewCount", "ignoredViewCount", "warnings", "warningReason", "reputation",
     // "vip", "lastSegmentID"]
     // "vip", "lastSegmentID"]
  // OR
  value: string // Optional, Value to get from userInfo, can be repeated for multiple values
}
}
</syntaxhighlight>
</syntaxhighlight>
Line 262: Line 264:
   warnings: int, // Currently enabled warnings
   warnings: int, // Currently enabled warnings
   reputation: float,  
   reputation: float,  
   vip: boolean, // VIP status
   vip: int, // VIP status
   lastSegmentID: string // UUID of last submitted segment
   lastSegmentID: string // UUID of last submitted segment
}
}
Line 308: Line 310:
   }
   }
   // IF CHOSEN
   // IF CHOSEN
   actionTypeCount: { # of segments per type
   actionTypeCount: { // # of segments per type
     skip: integer
     skip: integer
     mute: integer
     mute: integer
Line 351: Line 353:


'''Response''':
'''Response''':
<syntaxhighlight lang="js">
<syntaxhighlight lang="ts">
{
{
   timeSaved: float // In minutes
   timeSaved: float // In minutes
Line 833: Line 835:
403: Unauthorized (You are not a VIP)
403: Unauthorized (You are not a VIP)


409: User already shadowbanned & unHideOldSubmissions not changed
409: Duplicate (User already shadowbanned & unHideOldSubmissions not changed)
-----
-----
===== '''POST''' <code>/api/warnUser</code>=====
===== '''POST''' <code>/api/warnUser</code>=====

Navigation menu