Users are the basic building blocks in IdeaMelt
A user can be anything you want it to be
ONLY users can do things like follow people and create stories
Before doing things, a user must be registered in IdeaMelt.
You need 3 things to create a user:
Let's do this now!
In our example story, the user is Babe Ruth. We'll be creating him using the User - Create API.
user_url |
http://en.wikipedia.org/wiki/Babe_Ruth
Remember, this URL must be resolvable and unique. Most importantly, it must always stay the same for this specific person! |
title | Babe Ruth |
avatar | http://http://upload.wikimedia.org/wikipedia/commons/1/13/Babe_Ruth2.jpg |
Here's the actual request in JavaScript using the official IdeaMelt JS Library. Go ahead and copy paste this into the console, it'll work! (We've already initialized the library on the page, don't worry.)
IdeaMelt.send('UserCreate', { user_url: "http://en.wikipedia.org/wiki/Babe_Ruth", title: "Babe Ruth", avatar: "http://http://upload.wikimedia.org/wikipedia/commons/1/13/Babe_Ruth2.jpg" });
Congratulations, you've created your first user!