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 |
Returns all user settings for the authenticated user.
See: Calendar API Reference for calendar.settings.list
.
Synopsis
- type SettingsListResource = "calendar" :> ("v3" :> ("users" :> ("me" :> ("settings" :> (QueryParam "syncToken" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] Settings))))))))
- settingsList :: SettingsList
- data SettingsList
- slSyncToken :: Lens' SettingsList (Maybe Text)
- slPageToken :: Lens' SettingsList (Maybe Text)
- slMaxResults :: Lens' SettingsList (Maybe Int32)
REST Resource
type SettingsListResource = "calendar" :> ("v3" :> ("users" :> ("me" :> ("settings" :> (QueryParam "syncToken" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] Settings)))))))) Source #
A resource alias for calendar.settings.list
method which the
SettingsList
request conforms to.
Creating a Request
settingsList :: SettingsList Source #
Creates a value of SettingsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SettingsList Source #
Returns all user settings for the authenticated user.
See: settingsList
smart constructor.
Instances
Request Lenses
slSyncToken :: Lens' SettingsList (Maybe Text) Source #
Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since then. If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken. Learn more about incremental synchronization. Optional. The default is to return all entries.
slPageToken :: Lens' SettingsList (Maybe Text) Source #
Token specifying which result page to return. Optional.
slMaxResults :: Lens' SettingsList (Maybe Int32) Source #
Maximum number of entries returned on one result page. By default the value is 100 entries. The page size can never be larger than 250 entries. Optional.