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 9 Next »

/social/person/register/{wpuser}/{wpauth}

TODO lots of changes here

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

To use these examples: update the fields in the json objects to suit yourself (for example minimally change the fields: firstname, lastname, email, username, password)

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

Passwords must be hashed by SHA256 into base64 (most websites hash to HEX).

http://insidepro.com/hashes.php?lang=eng#1 will perform many hashes, the 2nd SHA256 is the base64 hashed password we require.

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