tanuki v0.0.1 Tanuki.Users.Keys

Summary

Functions

POST /user/keys

GET /user/key/:id

GET /users/:uid/keys

GET /users/:uid/keys

GET /user/keys

DELETE /user/keys/:id

DELETE /users/:uid/keys/:id

Functions

add_key(params, client)

POST /user/keys

Required params:

  • title
  • key

Adds a new key to your account

add_key_for_user(id, params, client)

POST /users/:id/keys

Required params:

  • title
  • key

Adds a new key to the account with the id passed

key_by_id(id, client)

GET /user/key/:id

Gets your key by id

key_for_user(uid, client)

GET /users/:uid/keys

Gets the keys for the user with the passed uid

list_for_user(uid, client)

GET /users/:uid/keys

mine(client)

GET /user/keys

Get your own keys

remove_by_id(id, client)

DELETE /user/keys/:id

Remove your own key my id

remove_key_for_user(uid, key_id, client)

DELETE /users/:uid/keys/:id

Remove your own key my id

users(client, params \\ [])

GET /users

Without params, it lists all users call users(client, username: “root”) to search for user root (and only user root) Pass [{search: term}] to find all users associated with the term