gogapidocs icon indicating copy to clipboard operation
gogapidocs copied to clipboard

Server Denies Access

Open willhamilton24 opened this issue 6 years ago • 0 comments

Hi,

When I try to make a get request for products, I get a connection refused error. How do I gain access to the API? Sorry for this noob question lol.

Ruby Script:

url = "embed.gog.com/games/ajax/filtered?mediaType=game" res = HTTParty.get(url) pRes = res.parsed_response

results = pRes["products"]

results.each { |g|

name = g["title"] url = g["url"]

newGame = {:name => name, :url => url}

game = $games.insert_one(newGame) puts "#{ name } Uploaded" }

processComplete = true

  • Sorry I haven't figured out code snippets on this site

willhamilton24 avatar Aug 13 '18 00:08 willhamilton24