Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
API Call - /people/register/

...

{wpuser}/{wpauth} or /people/register
Info

Creates a user based on parameters passed in.

Authentication

Not Required

Arguments

noneRequired, see Auth - Login, must come from ikanow.com website on Saas, or must be admin on deployed version

Arguments

wpuser (required)
JSON object of wordpress user

wpauth (required)
JSON object of wordpress auth

Parameters

wpuser (required)
Wordpress user object in json JSON object of wordpress user

wpauth (required)
Wordpress authentication object in json

Example

http://<SERVER-NAME> JSON object of wordpress auth

Example

UserJSON = {"created":"Oct 21, 2011 14:13:08 PM","modified":"Oct 21, 2011 14:13:08 PM","firstname":"jill","lastname":"smith","phone":"5555555555","email":["jillsmith@ikanow.com"] }
AuthJSON = {"username":"jillsmith@ikanow.com","password":"SHA256_HASHED_PASSWORD","accountType":"user","created":"Oct 21, 2011 14:13:08 PM","modified":"Oct 21, 2011 14:13:08 PM" }

Info

Dates must follow the format: MMM dd, yyyy kk:mm:ss aa as specified via java SimpleDateFormat: http://download.oracle.com/javase/1.4.2/docs/api/java/text/SimpleDateFormat.html

http://infinite.ikanow.com/api/people/register/ENCODE(UserJSON)/ENCODE(AuthJSON)
http://infinite.ikanow.com/api/people/register?wpuser=blahENCODE(UserJSON)&wpauth=blahblahENCODE(AuthJSON)

Info

You can use a site like: http://meyerweb.com/eric/tools/dencoder/ to encode your JSON objects before adding them to the url

Example Response
Info
Code Block

...