Use this client library to gain full access to the UserApp API from your JavaScript application.
$ bower install userapp
Add a <script>
to your index.html
:
<script src="/bower_components/userapp/userapp.client.js"></script>
- Sign up for an account at https://www.userapp.io/.
- Get your App Id (https://help.userapp.io/customer/portal/articles/1322336-how-do-i-find-my-app-id-).
- Include
userapp.client.js
on your site. - Initialize UserApp by running
UserApp.initialize({appId:'YOUR APP ID'});
. - Try it out!
- Add a user to your app:
UserApp.User.save({login:'epicme',email:'epic@testing123.cmo',password:'epiq'}, function(e,r){});
- Login the user you just added:
UserApp.User.login({login:'epicme',password:'epiq'}, function(e,r){});
- Print the logged-in user:
UserApp.User.get({user_id:'self'}, function(error, user){console.log(user);});
- Add a user to your app:
- Enjoy!
- Read the API documentation (https://app.userapp.io/#/docs/libs/javascript/)
- Check our support center (https://help.userapp.io/) to see if we've already answered your question.
- Ask a question. Either at https://help.userapp.io/customer/portal/emails/new or email us at support@userapp.io.
Tweet us @userapp_io
//Live long and prosper!