rghuckins / robinhood-google-sheets

Robinhood Custom Functions for Google Sheets 📈
147 stars 48 forks source link

SyntaxError #4

Closed CannedSplam closed 5 years ago

CannedSplam commented 5 years ago

I am getting this error when I try to run the script or use any function in my sheet.

SyntaxError: Unexpected token: < (line 41, file "Code")

Why is this and how do I fix it?

CannedSplam commented 5 years ago

@rghuckins Let me know on this

zameschua commented 5 years ago

I ran into this problem and I found out that Robinhood recently deprecated their /api-token-auth endpoint, and migrated it over to /oauth2/token

I managed to make my script work by roughly following this link: https://github.com/aurbano/robinhood-node/pull/78/files

I'll create a pull request with the changes to upgrade to Oauth2