Get List of User's YubiKeys

To get the list of Yubikeys assigned to a certain user, use the following request:

GET /users/:user_id/yubi_keys.xml
GET /users/:user_id/yubi_keys.json

XML Request Example 

curl -i -X GET  -H 'Content-type: application/xml' -u user:userpass http://onapp.test/users/984/yubi_keys.xml

JSON Request Example 

curl -i -X GET  -H 'Content-type: application/json' -u user:userpass http://onapp.test/users/984/yubi_keys.json

XML Output Example 

<yubi_keys type="array">
    <created_at type="datetime">2016-10-26T14:18:13+00:00</created_at>
    <id type="integer">8</id>
    <last_used nil="true"/>
    <updated_at type="datetime">2016-10-26T14:18:13+00:00</updated_at>
    <user_id type="integer">984</user_id>


created_at - the date in the [YYYY][MM][DD]T[hh][mm][ss]Z format

id - the Yubikey ID

label - the YubiKey name

last_used - the time and date when the YubiKey was last used

otp - the character string generated by the Yubikey

updated_at - the date in the [YYYY][MM][DD]T[hh][mm][ss]Z format

user_id - the ID of the user with which this YubiKey is associated