Idea Melt

Focus Mode

The Basics

Make a User

What are Users?

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

User

Before doing things, a user must be registered in IdeaMelt.

You need 3 things to create a user:

  • URL
  • Title
  • Avatar

Let's do this now!

User

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
User

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!