json parsing working alone and not with another code

Maxwell,

I've copied your code to my ide and verified it. But it give me this error message:

Any ideas? I'm looking to get this working as i'm working on a weather project for the wife. Thanks..

Arduino: 1.8.8 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

C:\Users\Martin Gundel\Documents\Arduino\sketch_feb25b\sketch_feb25b.ino: In function 'void loop()':

sketch_feb25b:52:28: error: 'resource' was not declared in this scope

if(sendRequest(server, resource) && skipResponseHeaders()) {

^

exit status 1
'resource' was not declared in this scope