can't believe i just spent 3 hours debugging a stupid api issue and it turns out the problem was a single missing semicolon in their example code