Copyright | (c) 2015 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 |
Retrieves the list of accounts, possibly filtered.
See: DCM/DFA Reporting And Trafficking API Reference for dfareporting.accounts.list
.
- type AccountsListResource = "dfareporting" :> ("v2.2" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("accounts" :> (QueryParam "searchString" Text :> (QueryParams "ids" (Textual Int64) :> (QueryParam "sortOrder" AccountsListSortOrder :> (QueryParam "active" Bool :> (QueryParam "pageToken" Text :> (QueryParam "sortField" AccountsListSortField :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get `[JSON]` AccountsListResponse))))))))))))
- accountsList :: Int64 -> AccountsList
- data AccountsList
- accSearchString :: Lens' AccountsList (Maybe Text)
- accIds :: Lens' AccountsList [Int64]
- accProFileId :: Lens' AccountsList Int64
- accSortOrder :: Lens' AccountsList (Maybe AccountsListSortOrder)
- accActive :: Lens' AccountsList (Maybe Bool)
- accPageToken :: Lens' AccountsList (Maybe Text)
- accSortField :: Lens' AccountsList (Maybe AccountsListSortField)
- accMaxResults :: Lens' AccountsList (Maybe Int32)
REST Resource
type AccountsListResource = "dfareporting" :> ("v2.2" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("accounts" :> (QueryParam "searchString" Text :> (QueryParams "ids" (Textual Int64) :> (QueryParam "sortOrder" AccountsListSortOrder :> (QueryParam "active" Bool :> (QueryParam "pageToken" Text :> (QueryParam "sortField" AccountsListSortField :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get `[JSON]` AccountsListResponse)))))))))))) Source
A resource alias for dfareporting.accounts.list
method which the
AccountsList
request conforms to.
Creating a Request
Creates a value of AccountsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AccountsList Source
Retrieves the list of accounts, possibly filtered.
See: accountsList
smart constructor.
Request Lenses
accSearchString :: Lens' AccountsList (Maybe Text) Source
Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "account*2015" will return objects with names like "account June 2015", "account April 2015", or simply "account 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "account" will match objects with name "my account", "account 2015", or simply "account".
accIds :: Lens' AccountsList [Int64] Source
Select only accounts with these IDs.
accProFileId :: Lens' AccountsList Int64 Source
User profile ID associated with this request.
accSortOrder :: Lens' AccountsList (Maybe AccountsListSortOrder) Source
Order of sorted results, default is ASCENDING.
accActive :: Lens' AccountsList (Maybe Bool) Source
Select only active accounts. Don't set this field to select both active and non-active accounts.
accPageToken :: Lens' AccountsList (Maybe Text) Source
Value of the nextPageToken from the previous result page.
accSortField :: Lens' AccountsList (Maybe AccountsListSortField) Source
Field by which to sort the list.
accMaxResults :: Lens' AccountsList (Maybe Int32) Source
Maximum number of results to return.