Skip to main content

How to use the generated NodeJS SDK?

Comments

4 comments

  • Official comment
    Support

    Hi Jim,

    The Generated code produces a Node NPM package.
    We do have a tutorial on zendesk to give you an example.

    https://apimatic.zendesk.com/hc/en-us/articles/209432988-Using-your-generated-Node-JS-SDK-

    Thanks
    Kartik

  • Jim Tan

    For our API generated, we do not find any main.js but just index.js. How do we run that? There is no HTML client?

    0
  • Kartik

    NodeJS is designed to be a server side SDK, so I am not 100% sure what you meant by HTML Client.
    The main.js file is a file that you create as part of the tutorial.

    In that file, you consume the SDK by requiring it and utilizing the controllers to invoke the API.

    0
  • Jim Tan

    IMHO, Apimatic should generate a sample HTML that make use of the API. It is better than the command line sample. Wouldn't it be nice? After all, the final consumer is web for REST API, right? :)

    Please consider it as an enhancement?

    0

Please sign in to leave a comment.