API Request returns a Nan

Answered

3 Comments

  • Daniel Pawluk
    Comment actions Permalink

    Henderson,

    You probably want to wrap your first client.get() request in a client.on('app.registered', f()) so that it doesn't try to do the client.get() before the ZAF SDK has established a connection with Zendesk. 

    0
  • Henderson Brito
    Comment actions Permalink

    Hi Daniel,

    Thank you very much for your response and help. I am new to coding in Javascript so would you mind giving me an example on how i would could correctly wrap a client.get() request in client.on('app.registered', f()). I'm not sure how the syntax would look without making a mistake 

    0
  • Daniel Pawluk
    Comment actions Permalink

    Henderson,

     

    Sure, here is a gist that shows that being done - https://gist.github.com/dpawluk/a2a0444f27d30830c41398d09228e22d

    0

Please sign in to leave a comment.

Powered by Zendesk