Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Deletes a session specified by the given session ID.
See: Fitness Reference for fitness.users.sessions.delete
.
Synopsis
- type UsersSessionsDeleteResource = "fitness" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("sessions" :> (Capture "sessionId" Text :> (QueryParam "currentTimeMillis" (Textual Int64) :> (QueryParam "alt" AltJSON :> Delete '[JSON] ())))))))
- usersSessionsDelete :: Text -> Text -> UsersSessionsDelete
- data UsersSessionsDelete
- usdUserId :: Lens' UsersSessionsDelete Text
- usdCurrentTimeMillis :: Lens' UsersSessionsDelete (Maybe Int64)
- usdSessionId :: Lens' UsersSessionsDelete Text
REST Resource
type UsersSessionsDeleteResource = "fitness" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("sessions" :> (Capture "sessionId" Text :> (QueryParam "currentTimeMillis" (Textual Int64) :> (QueryParam "alt" AltJSON :> Delete '[JSON] ()))))))) Source #
A resource alias for fitness.users.sessions.delete
method which the
UsersSessionsDelete
request conforms to.
Creating a Request
Creates a value of UsersSessionsDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersSessionsDelete Source #
Deletes a session specified by the given session ID.
See: usersSessionsDelete
smart constructor.
Instances
Request Lenses
usdUserId :: Lens' UsersSessionsDelete Text Source #
Delete a session for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.
usdCurrentTimeMillis :: Lens' UsersSessionsDelete (Maybe Int64) Source #
The client's current time in milliseconds since epoch.
usdSessionId :: Lens' UsersSessionsDelete Text Source #
The ID of the session to be deleted.