The problem comes from the the script sending the info to the sanbox versus live server. The credentials were not correct for the server you were posting to so it returned that error. The update makes it so the interaction is working with the correct server.