High-Level API error

Hello,

I'm trying to use the High-Level API (from https://github.com/binary-com/binary-live-api) and I get this error:

  • LiveApi.js:1 Uncaught SyntaxError: Unexpected token import

Any help would be appreciated.

Thanks.

Sergio.

Comments

  • Hi sergio,

    May I know how were you using it?

    commonJS?
    Or simply add the script tag in html?

  • Sergio,

    We recommend you either install it through npm via

    npm i binary-live-api --save

    Or include like this:

  • edited July 2016

    Yes, I'm using it just this way:

    And I'm get this: LiveApi.js:1 Uncaught SyntaxError: Unexpected token import

    A question: What about nodeJS? It's necessary to install locally nodeJS or what about that?

    Thanks.

  • Any help or sample would be appreciated :)

    Thanks!

Sign In or Register to comment.