working jsonp but with no invalid username warning

This commit is contained in:
spbeach46
2023-11-26 09:59:01 -07:00
parent 3462cd3101
commit b4df03c1f5
5 changed files with 294 additions and 92 deletions

View File

@@ -33,3 +33,4 @@ function makeRequest() {
// https://api.chess.com/pub/player/hippodrunkimus/games/2023/03 (can't use .pgn)
//https://api.chess.com/pub/player/${username}/games/archives?callback=jsonpCallback&user_agent=${encodeURIComponent(randomUserAgent)}`
//Good. Now, the archive_list contains an archives property and each element in the archives array corresponds to a URL. I need make asynchronous requests with those URLs in the same manner as the initial request, namely using random user agents and implementing jsonp again. The response from each of these URL requests will be an object of the form { "games" : [{"pgn": "chess game 1 in pgn notation"}, {"pgn":"chess game 2 in pgn notation"}, ...]