API Docs: Difference between revisions

Jump to navigation Jump to search
203 bytes added ,  20 December 2021
fixed incorrect input
(update from drafts)
(fixed incorrect input)
Line 42: Line 42:


   service: string, // Optional, default is 'YouTube' [2]
   service: string, // Optional, default is 'YouTube' [2]
  locked: int, // If segment is locked
  votes: int, // Votes on segment
  userID: string // Public userID of submitter
}
}
</syntaxhighlight>
</syntaxhighlight>
Line 166: Line 163:
'''Response''':
'''Response''':
<syntaxhighlight lang="ts">
<syntaxhighlight lang="ts">
{
{ // array of this object
   Nothing (status code 200)
   UUID: string, // UUID of submitted segment
}
  category: string, // submitted category [1]
  segment: float[] // start and end time of submitted segment
}[]
</syntaxhighlight>
</syntaxhighlight>


Line 326: Line 325:
     preview: integer
     preview: integer
     poi_highlight: integer
     poi_highlight: integer
    filler: integer
   }
   }
   // IF CHOSEN
   // IF CHOSEN
Line 456: Line 456:
   locked: int, // Status of lock - If upvoted by a VIP, the segment is locked
   locked: int, // Status of lock - If upvoted by a VIP, the segment is locked
   UUID: string,
   UUID: string,
   userID: string, // PublicID of submitted
   userID: string, // PublicID of submitter
   timeSubmitted: int,
   timeSubmitted: int,
   views: int, // Number of reported views on the segment
   views: int, // Number of reported views on the segment
Line 582: Line 582:
<syntaxhighlight lang="ts">
<syntaxhighlight lang="ts">
[{ // Array of this object
[{ // Array of this object
   category: string
   category: string, // category [1]
   locked: integer
   locked: integer, // status of lock
   reason: string
   reason: string, // reason for lock
  userID: string, // publicID of locking VIP
  userName: string // username of locking VIP
}]
}]
</syntaxhighlight>
</syntaxhighlight>
Line 648: Line 650:
     hidden: int,
     hidden: int,
     shadowHidden: int,
     shadowHidden: int,
     userID: string, // UUID of user
     userID: string, // UUID of submitter
   }]
   }]
}
}

Navigation menu