I've just started learning a bit of R in order to pull and analyse data from Google Analytics. What I'm struggling with is querying the management API to pull certain account data.
My desire is to be able to pull the definition of a segment or the definition of all my segments. That is to be able to find out how the segment is built e.g. page url contains 'questions'.
I'm using RGoogleAnalyics package. I've found this source code (https://r-google-analytics.googlecode.com/svn-history/r32/trunk/src/RGoogleAnalytics/R/Configuration.R) but not quite sure how to interpret that into script. I've tried experimenting but not getting any success - variety of errors around not being able to find functions such as Validatetoken or RetrieveConfigurationData
Any help as to how I need to format my query to get this would be really appreciated. Thanks