Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

API Call - /people/register/{wpuser}/{wpauth} or /people/register

Creates a user based on parameters passed in.

Authentication

Required, 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)
JSON object of wordpress user

wpauth (required)
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" }

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=ENCODE(UserJSON)&wpauth=ENCODE(AuthJSON)

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
 
Error Response
  • No labels