/// <summary> /// Gets a list of profiles 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 GetProfiles(AnalyticsProfilesOptions options) { // Some input validation if (options == null) throw new ArgumentNullException("options"); // Construct the URL string url = String.Format( "{0}accounts/" + options.AccountId + "/webproperties/" + options.WebPropertyId + "/profiles", ManagementUrl, options.AccountId, options.WebPropertyId ); // Make the call to the API return Client.DoAuthenticatedGetRequest(url, options); }
/// <summary> /// Gets a list of profiles based on the specified <code>options</code>. /// </summary> /// <param name="options">The options for the call to the API.</param> public AnalyticsProfilesResponse GetProfiles(AnalyticsProfilesOptions options) { if (options == null) throw new ArgumentNullException("options"); return AnalyticsProfilesResponse.ParseResponse(Raw.GetProfiles(options)); }