/// <summary> /// Gets realtime data based on the specified <code>options</code>. /// </summary> /// <param name="profileId">The ID of the Analytics profile.</param> /// <param name="options">The options specifying the query.</param> /// <returns>Returns an instance of <code>AnalyticsRealtimeDataResponse</code> representing the response.</returns> public AnalyticsRealtimeDataResponse GetRealtimeData(string profileId, AnalyticsRealtimeDataOptions options) { if (options == null) throw new ArgumentNullException("options"); return AnalyticsRealtimeDataResponse.ParseResponse(Raw.GetRealtimeData(options)); }
/// <summary> /// Gets realtime data based on the specified <code>options</code>. /// </summary> /// <param name="options">The options for the call to the API.</param> /// <returns>Returns an instance of <code>SocialHttpResponse</code> representing the response.</returns> public SocialHttpResponse GetRealtimeData(AnalyticsRealtimeDataOptions options) { if (options == null) throw new ArgumentNullException("options"); return Client.DoAuthenticatedGetRequest("https://www.googleapis.com/analytics/v3/data/realtime", options); }