| 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 |
Network.Google.Resource.Analytics.Management.Goals.List
Description
Lists goals to which the user has access.
See: Google Analytics API Reference for analytics.management.goals.list.
Synopsis
- type ManagementGoalsListResource = "analytics" :> ("v3" :> ("management" :> ("accounts" :> (Capture "accountId" Text :> ("webproperties" :> (Capture "webPropertyId" Text :> ("profiles" :> (Capture "profileId" Text :> ("goals" :> (QueryParam "start-index" (Textual Int32) :> (QueryParam "max-results" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] Goals))))))))))))
- managementGoalsList :: Text -> Text -> Text -> ManagementGoalsList
- data ManagementGoalsList
- mglWebPropertyId :: Lens' ManagementGoalsList Text
- mglProFileId :: Lens' ManagementGoalsList Text
- mglAccountId :: Lens' ManagementGoalsList Text
- mglStartIndex :: Lens' ManagementGoalsList (Maybe Int32)
- mglMaxResults :: Lens' ManagementGoalsList (Maybe Int32)
REST Resource
type ManagementGoalsListResource = "analytics" :> ("v3" :> ("management" :> ("accounts" :> (Capture "accountId" Text :> ("webproperties" :> (Capture "webPropertyId" Text :> ("profiles" :> (Capture "profileId" Text :> ("goals" :> (QueryParam "start-index" (Textual Int32) :> (QueryParam "max-results" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] Goals)))))))))))) Source #
A resource alias for analytics.management.goals.list method which the
ManagementGoalsList request conforms to.
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> ManagementGoalsList |
Creates a value of ManagementGoalsList with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ManagementGoalsList Source #
Lists goals to which the user has access.
See: managementGoalsList smart constructor.
Instances
Request Lenses
mglWebPropertyId :: Lens' ManagementGoalsList Text Source #
Web property ID to retrieve goals for. Can either be a specific web property ID or '~all', which refers to all the web properties that user has access to.
mglProFileId :: Lens' ManagementGoalsList Text Source #
View (Profile) ID to retrieve goals for. Can either be a specific view (profile) ID or '~all', which refers to all the views (profiles) that user has access to.
mglAccountId :: Lens' ManagementGoalsList Text Source #
Account ID to retrieve goals for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.
mglStartIndex :: Lens' ManagementGoalsList (Maybe Int32) Source #
An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
mglMaxResults :: Lens' ManagementGoalsList (Maybe Int32) Source #
The maximum number of goals to include in this response.