1export function apiAddToMarathon() { 2 return 'https://www.bingeclock.com/api/add_it_to_marathon'; 3} 4 5export function apiAllRewards(order_by = 'added_on') { 6 return `https://www.bingeclock.com/api/all_rewards?order_by=${order_by}`; 7} 8 9export function apiClaimReward(urlname) { 10 return `https://www.bingeclock.com/api/claim_reward/${urlname}`; 11} 12 13export function apiChangeItemLength() { 14 return 'https://www.bingeclock.com/api/change_length'; 15} 16 17export function apiAddCodeSiteRequest() { 18 return 'https://www.bingeclock.com/api/codes/submit/new'; 19} 20 21export function apiCodes(startPage) { 22 return `https://www.bingeclock.com/api/codes/${startPage}`; 23} 24 25export function apiConfirmRegistration(token) { 26 return `https://www.bingeclock.com/api/registration/activation/${token}`; 27} 28 29export function apiCreateNewMarathon() { 30 return 'https://www.bingeclock.com/api/create_a_new_marathon'; 31} 32 33export function apiDeleteAccountRequest() { 34 return 'https://www.bingeclock.com/api/delete_account_request'; 35} 36 37export function apiEpisodeRatings({urlname = '', season = null} = {}) { 38 if (season !== null) { 39 return `https://www.bingeclock.com/api/ratings/${urlname}?season=${season}`; 40 } else { 41 return `https://www.bingeclock.com/api/ratings/${urlname}`; 42 } 43} 44 45export function apiExit() { 46 return "https://www.bingeclock.com/api/logout"; 47} 48 49export function apiFilm(urlname) { 50 return `https://www.bingeclock.com/api/film/${urlname}`; 51} 52 53export function apiFriendRequest() { 54 return `https://www.bingeclock.com/api/friend_request`; 55} 56 57export function apiFriendRequestResponse() { 58 return `https://www.bingeclock.com/api/friend_request_response`; 59} 60 61export function apiFriends(currentSortBy) { 62 return `https://www.bingeclock.com/api/friends?sort_by=${currentSortBy}`; 63} 64 65export function apiFriendSearch() { 66 return `https://www.bingeclock.com/api/friend_search`; 67} 68 69export function apiGenerateInviteCode() { 70 return `https://www.bingeclock.com/api/invite/generate`; 71} 72 73export function apiGetAiThing(urlname) { 74 return `https://www.bingeclock.com/api/ai_thing/${urlname}`; 75} 76 77export function apiGetAllTickers(pageNumber, mediaType) { 78 if (mediaType !== null) { 79 return `https://www.bingeclock.com/api/all_tickers/${pageNumber}?media_type=${mediaType}`; 80 } else { 81 return `https://www.bingeclock.com/api/all_tickers/${pageNumber}`; 82 } 83} 84 85export function apiGetBingerdles() { 86 return `https://www.bingeclock.com/api/bingerdle/all_games`; 87} 88 89export function apiGetChart(chartType, mediaType, doneStatus) { 90 let apiUrl = 'https://www.bingeclock.com/api/chart/'; 91 switch(chartType) { 92 case 'pie': 93 apiUrl += 'pie/' + mediaType + '/' + doneStatus + '/streamers'; 94 break; 95 case 'bar': 96 apiUrl += 'runtime_distribution/' + mediaType + '/' + doneStatus; 97 break; 98 case 'scatter': 99 apiUrl += 'genre_scatter/' + mediaType + '/' + doneStatus + '/genre'; 100 break; 101 default: 102 showMiniModal('Error', 'Invalid chart type'); 103 return; 104 } 105 return apiUrl; 106} 107 108export function apiGetHome() { 109 return `https://www.bingeclock.com/api/home/new`; 110} 111 112export function apiGetHomeDash() { 113 return `https://www.bingeclock.com/api/home/dash`; 114} 115 116export function apiGetHomeDashDemo() { 117 return `https://www.bingeclock.com/api/home/dash/demo`; 118} 119 120export function apiGetHomeFeed() { 121 return `https://www.bingeclock.com/api/home/feed`; 122} 123 124export function apiGetHomeGuest() { 125 return `https://www.bingeclock.com/api/home/guest`; 126} 127 128export function apiGetLeaderboard(source, timeframe) { 129 return `https://www.bingeclock.com/api/home/leaderboard/${source}/${timeframe}`; 130} 131 132export function apiGetLinksByMediaItem(mediaType, urlname) { 133 return `https://www.bingeclock.com/api/links/${mediaType}/${urlname}`; 134} 135 136export function apiGetLinksInvestigator(mediaType, urlname) { 137 return `https://www.bingeclock.com/api/links/investigator/${mediaType}/${urlname}`; 138} 139 140export function apiGetListings(scope = 'popular') { 141 return `https://www.bingeclock.com/api/listings/none_set?scope=${scope}`; 142} 143 144export function apiGetList(typeOf, mediaType, who) { 145 return `https://www.bingeclock.com/api/list/${typeOf}/${mediaType}/${who}`; 146} 147 148export function apiGetListInfo(mediaType, listStatus, username) { 149 return `https://www.bingeclock.com/api/list_info/${mediaType}/${listStatus}/${username}`; 150} 151 152export function apiGetListItem(urlname, itemType, season, episode) { 153 return `https://www.bingeclock.com/api/list_item/${itemType}/${urlname}/${season}/${episode}`; 154} 155
156export function apiGetMarathonsFacts(username) { 157 return `https://www.bingeclock.com/api/marathons/facts/${username}`; 158} 159 160export function apiGetMyPoints() { 161 return "https://www.bingeclock.com/api/my_points"; 162} 163 164export function apiGetTextFrames(urlname, mediaType) { 165 return `https://www.bingeclock.com/api/text_frames/${urlname}/${mediaType}`; 166} 167 168export function apiGetNotifications(pageNumber) { 169 return `https://www.bingeclock.com/api/get_notifications/${pageNumber}`; 170} 171 172export function apiGetPark(urlname) { 173 return `https://www.bingeclock.com/api/park/${urlname}`; 174} 175 176export function apiGetProfile(username) { 177 return `https://www.bingeclock.com/api/profile/${username}`; 178} 179 180export function apiGetReward(urlname) { 181 return `https://www.bingeclock.com/api/get_reward/${urlname}`; 182} 183 184export function apiGetRide(parkUrlname, rideUrlname) { 185 return `https://www.bingeclock.com/api/park/${parkUrlname}/ride/${rideUrlname}`; 186} 187 188export function apiGetSomeLeaderboard() { 189 return `https://www.bingeclock.com/api/home/some_leaderboard`; 190} 191 192export function apiGetSportsGame(league, team, gameDate) { 193 return `https://www.bingeclock.com/api/sports/${league}/${team}/game/${gameDate}`; 194} 195 196export function apiGetSportsSeason(league, team, season) { 197 return `https://www.bingeclock.com/api/sports/${league}/${team}/season/${season}`; 198} 199 200export function apiGetVideoGame(urlname) { 201 return `https://www.bingeclock.com/api/video_game/${urlname}`; 202} 203 204export function apiGetWebVideo(urlname, source) { 205 return `https://www.bingeclock.com/api/web_video/${urlname}/${source}`; 206} 207 208export function apiLoadEpisodesSeasons(urlname, length) { 209 return `https://www.bingeclock.com/api/episodes_seasons/${urlname}/${length}`; 210} 211 212export function apiLogIn() { 213 return `https://www.bingeclock.com/api/login`; 214} 215 216export function apiLogInOauth() { 217 return `https://www.bingeclock.com/api/login/oauth`; 218} 219 220export function apiLogInOneClick() { 221 return `https://www.bingeclock.com/api/login/click`; 222} 223 224export function apiMarathon(urlname) { 225 return `https://www.bingeclock.com/api/marathon/${urlname}`; 226} 227 228export function apiMarathonChangeHeadings() { 229 return `https://www.bingeclock.com/api/change_marathon_headings`; 230} 231 232export function apiMarathonChecklistLoad(urlname) { 233 return `https://www.bingeclock.com/api/checklist/load/${urlname}`; 234} 235 236export function apiMarathonChecklistUpdate() { 237 return `https://www.bingeclock.com/api/checklist/update`; 238} 239 240export function apiMarathonDelete() { 241 return `https://www.bingeclock.com/api/delete_marathon`; 242} 243 244export function apiMarathonFork() { 245 return `https://www.bingeclock.com/api/fork_marathon_here`; 246} 247 248export function apiMarathonInviteOwner() { 249 return `https://www.bingeclock.com/api/invite_marathon_owner`; 250} 251 252export function apiMarathonMoveOrRemoveItem() { 253 return `https://www.bingeclock.com/api/move_on_marathon`; 254} 255 256export function apiMarathons(userSet) { 257 return `https://www.bingeclock.com/api/marathons/${userSet}`; 258} 259 260export function apiMarathonsNew(limit=300) { 261 return `https://www.bingeclock.com/api/marathons/new?limit=${limit}`; 262} 263 264export function apiMarathonsMine(materialType, itemId, length) { 265 return `https://www.bingeclock.com/api/marathons_mine/${materialType}/${itemId}/${length}`; 266} 267 268export function apiRandomFeaturedMarathons() { 269 return 'https://www.bingeclock.com/api/marathons/random/featured'; 270} 271 272export function apiMarkAllNotificationsAsRead() { 273 return `https://www.bingeclock.com/api/mark_all_notifications_as_read`; 274} 275 276export function apiMarkNotificationAsRead(notificationId) { 277 return `https://www.bingeclock.com/api/mark_notification_as_read/${notificationId}`; 278} 279 280export function apiMyRewards() { 281 return 'https://www.bingeclock.com/api/my_rewards'; 282} 283 284export function apiOpenPack() { 285 return 'https://www.bingeclock.com/api/shelf/pack/open'; 286} 287 288export function apiWolfQuote() { 289 return 'https://www.bingeclock.com/api/shelf/wolf/quote'; 290} 291 292export function apiWolfAccept() { 293 return 'https://www.bingeclock.com/api/shelf/wolf/accept'; 294} 295 296export function apiNotificationOnce() { 297 return `https://www.bingeclock.com/api/once_notification`; 298} 299 300export function apiPasswordResetConfirm() { 301 return `https://www.bingeclock.com/api/password_reset/confirm`; 302} 303
304export function apiPasswordResetRequest() { 305 return `https://www.bingeclock.com/api/password_reset`; 306} 307 308export function apiPendingFriendRequests(currentSortBy) { 309 return `https://www.bingeclock.com/api/pending_friend_requests?sort_by=${currentSortBy}`; 310} 311 312export function apiPostSuggestMissing() { 313 return `https://www.bingeclock.com/api/suggest_missing`; 314} 315 316export function apiPostSurvey() { 317 return `https://www.bingeclock.com/api/submit_survey`; 318} 319 320export function apiRandomEpisode(urlname, season) { 321 if (season !== '0') { 322 return `https://www.bingeclock.com/api/random/${urlname}?season=${season}`; 323 } else { 324 return `https://www.bingeclock.com/api/random/${urlname}`; 325 } 326} 327 328export function apiRecommendItem() { 329 return `https://www.bingeclock.com/api/recommendation/send`; 330} 331 332export function apiRefreshRequest() { 333 return `https://www.bingeclock.com/api/contributor/refresh`; 334} 335 336export function apiRegistration() { 337 return `https://www.bingeclock.com/api/registration`; 338} 339 340export function apiRespondToMarathonOwnerInvite() { 341 return 'https://www.bingeclock.com/api/respond_marathon_owner_invite'; 342} 343 344export function apiSaveUnsaveOnList(saveDirection) { 345 return `https://www.bingeclock.com/api/${saveDirection}-this`; 346} 347 348export function apiSearch(searchQuery) { 349 return `https://www.bingeclock.com/api/search/${searchQuery}`; 350} 351 352export function apiSearchNew(searchQuery) { 353 return `https://www.bingeclock.com/api/search_new/${searchQuery}`; 354} 355 356export function apiSetOauthUsername() { 357 return `https://www.bingeclock.com/api/oauth_username`; 358} 359 360export function apiShow(urlname, length, daily, season, episode, searchToken) { 361 let baseUrl = `https://www.bingeclock.com/api/show/${urlname}/${length}`; 362 let params = []; 363 364 if (daily !== '0') params.push(`daily=${daily}`); 365 if (season !== '0') params.push(`season=${season}`); 366 if (episode !== '0') params.push(`episode=${episode}`); 367 if (searchToken !== '0') params.push(`search_token=${searchToken}`); 368 369 return params.length ? `${baseUrl}?${params.join('&')}` : baseUrl; 370} 371 372export function apiSetListItemDates() { 373 return `https://www.bingeclock.com/api/list_item/dates`; 374} 375 376export function apiSpotifyAlbums(urlname, mediaType) { 377 return `https://www.bingeclock.com/api/spotify/albums/${urlname}/${mediaType}`; 378} 379 380export function apiTickerSavedItems(page) { 381 return `https://www.bingeclock.com/api/ticker/saved/${page}`; 382} 383 384export function apiTickerSaveUpdate() { 385 return `https://www.bingeclock.com/api/ticker/save`; 386} 387 388export function apiUnfriend() { 389 return `https://www.bingeclock.com/api/unfriend`; 390} 391 392export function apiUnsubscribeEmail(unsubscribeToken) { 393 return `https://www.bingeclock.com/api/unsubscribe/${unsubscribeToken}`; 394} 395 396export function apiUpdateLengthOnList() { 397 return `https://www.bingeclock.com/api/update-length`; 398} 399 400export function apiUpdateLengthOnMarathon() { 401 return `https://www.bingeclock.com/api/update_length_on_marathon`; 402} 403 404export function apiUpdateSettings() { 405 return `https://www.bingeclock.com/api/update_settings`; 406} 407 408export function apiUserInfo() { 409 return `https://www.bingeclock.com/api/userinfo`; 410} 411 412// Trader endpoints 413export function apiAvailableTrades() { 414 return 'https://www.bingeclock.com/api/available_trades'; 415} 416 417export function apiMyTradeableCards() { 418 return 'https://www.bingeclock.com/api/my_tradeable_cards'; 419} 420 421export function apiExecuteTrade() { 422 return 'https://www.bingeclock.com/api/execute_trade'; 423} 424 425// Scavenger Hunt endpoints 426export function apiGetCurrentHunt() { 427 return 'https://www.bingeclock.com/api/scavenger/current'; 428} 429 430export function apiClaimHunt(urlname, mediaType) { 431 return `https://www.bingeclock.com/api/scavenger/claim/${urlname}/${mediaType}`; 432} 433 434export function apiSkipHunt() { 435 return 'https://www.bingeclock.com/api/scavenger/skip'; 436} 437 438// ChitChat endpoints 439export function apiChitchatCheckAccess() { 440 return 'https://www.bingeclock.com/api/chitchat/check-access'; 441} 442 443export function apiChitchatGeneral(limit = 50) { 444 return `https://www.bingeclock.com/api/chitchat/general?limit=${limit}`; 445} 446 447export function apiChitchatGeneralSince(messageId) { 448 return `https://www.bingeclock.com/api/chitchat/general/since/${messageId}`; 449} 450 451export function apiChitchatGeneralSend() { 452 return 'https://www.bingeclock.com/api/chitchat/general/send'; 453}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.