-2

I can't figure out how to use the Syncano Javascript user API in a node.js web app to log in a user, nor to create a new user, nor to fetch the user given the user auth token.

Is there sample code showing this anywhere, or more comprehensive docs? Thanks.

Rick
  • 3,298
  • 3
  • 29
  • 47

1 Answers1

1

If you perform npm run build, there will be a new sub-folder called docs. Open up index.html and you will have a full lib overview.

Also, the HTTP API Reference will have a JavaScript tag for most code examples. You will want to find the sections for Users and User.

Hope this helps!

Kelly J Andrews
  • 5,083
  • 1
  • 19
  • 32
  • Thank you. The link to the HTTP API Reference did the trick. This should get me a lot farther along. I didn't have to even build the project (I tried, but it failed. I assume I need to clone the repo and execute the npm run build command in that?). Thanks! – Rick Mar 28 '16 at 06:27
  • 1
    Yes, you would need to clone it, install dependencies and run the build script. – Kelly J Andrews Mar 28 '16 at 10:39