Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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" }

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

Info

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)

...