Skip to content

userapp-io/userapp-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UserApp API JavaScript Client

Use this client library to gain full access to the UserApp API from your JavaScript application.

Install with bower

$ bower install userapp

Add a <script> to your index.html:

<script src="/bower_components/userapp/userapp.client.js"></script>

How do I start?

  1. Sign up for an account at https://www.userapp.io/.
  2. Get your App Id (https://help.userapp.io/customer/portal/articles/1322336-how-do-i-find-my-app-id-).
  3. Include userapp.client.js on your site.
  4. Initialize UserApp by running UserApp.initialize({appId:'YOUR APP ID'});.
  5. 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);});
  6. Enjoy!

Having any problems?

Want to show some love?

Tweet us @userapp_io

//Live long and prosper!