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 |
Updates or insert a given session.
See: Fitness Reference for fitness.users.sessions.update
.
Synopsis
- type UsersSessionsUpdateResource = "fitness" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("sessions" :> (Capture "sessionId" Text :> (QueryParam "currentTimeMillis" (Textual Int64) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Session :> Put '[JSON] Session))))))))
- usersSessionsUpdate :: Session -> Text -> Text -> UsersSessionsUpdate
- data UsersSessionsUpdate
- usuPayload :: Lens' UsersSessionsUpdate Session
- usuUserId :: Lens' UsersSessionsUpdate Text
- usuCurrentTimeMillis :: Lens' UsersSessionsUpdate (Maybe Int64)
- usuSessionId :: Lens' UsersSessionsUpdate Text
REST Resource
type UsersSessionsUpdateResource = "fitness" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("sessions" :> (Capture "sessionId" Text :> (QueryParam "currentTimeMillis" (Textual Int64) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Session :> Put '[JSON] Session)))))))) Source #
A resource alias for fitness.users.sessions.update
method which the
UsersSessionsUpdate
request conforms to.
Creating a Request
Creates a value of UsersSessionsUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersSessionsUpdate Source #
Updates or insert a given session.
See: usersSessionsUpdate
smart constructor.
Instances
Request Lenses
usuPayload :: Lens' UsersSessionsUpdate Session Source #
Multipart request metadata.
usuUserId :: Lens' UsersSessionsUpdate Text Source #
Create sessions for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.
usuCurrentTimeMillis :: Lens' UsersSessionsUpdate (Maybe Int64) Source #
The client's current time in milliseconds since epoch.
usuSessionId :: Lens' UsersSessionsUpdate Text Source #
The ID of the session to be created.