Skip to content

(Core API) keychain put

smurthasmith edited this page Apr 24, 2011 · 4 revisions

Puts an object on the keychain

Method

POST

Arguments

  • serviceType: The type of service this is object is associated with (i.e. google, facebook, twitter)
  • object: The object (as json) to put on the keychain
  • meta: (Optional) Any meta data for the associated account (i.e. pretty print name)

Arguments Example

/keychain/put?serviceType=google&object=%7B%22username%22%3A%22myusername%22%2C%22password%22%3A%22mypassword%22%7D&meta=%7B%22full-name%22%3A%22Mr%20Locker%22%7D

Puts an object {"username":"myusername", "password":"mypassword"} of type google with meta data {"full-name":"Mr Locker"} on the keychain

Result

  • 200: The object we successfully added to the keychain.
Clone this wiki locally