°C/bar/m change

dive.io in Deutsch

API Resource /self

This resource exposes the currently authenticated user ("self") as an "Diver" object. This method can be used to fetch the full account data if a user has just provided username and password.

Resource URI:
https://api.dive.io/v1/self (.xml/.json)
Supported Methods:
GET (show), OPTIONS

GET /self (show)

Description
Returns a Diver object of the currently authenticated user
Authentication
Required
Request structure
n/a (empty)
Response structure
Returns a single Diver object, as shown below

Example response (XML)

<?xml version="1.0" encoding="UTF-8"?>
<DiveIo>
  <Diver>
    <Id>4</Id>
    <Firstname>John</Firstname>
    <Lastname>Puddlediver</Lastname>
    <EmailConfirmed>john@example.net</EmailConfirmed>
    <PicHash>1e9582e7577d8666</PicHash>
    <Created>2011-03-17 10:40:39.409262+01</Created>
    <Modified>2011-04-08 13:12:14.019118+02</Modified>
  </Diver>
  <Status>200 OK</Status>
</DiveIo>