AnalyticsApi.AnalyticsService.GetTopTrafficSources C# (CSharp) Method

GetTopTrafficSources() public method

public GetTopTrafficSources ( string start, string end ) : void
start string
end string
return void
        public void GetTopTrafficSources(string start, string end)
        {
            if (string.IsNullOrEmpty(_token))
                throw new Exception("No token found. Did you forget to login?");

            if (_profile == null)
                throw new Exception("No profile set. Use .Profile() to set.");

            var url = "https://www.google.com/analytics/feeds/data?ids=ga%3A" + _profile.Value +
                      "&metrics=ga%3Avisits&dimensions=ga%3Akeyword&start-date=" + start + "&end-date=" + end +
                      "&max-results=50" +
                      "&filters=ga%3Akeyword!=(not set)0&sort=-ga%3Avisits";

            var data = _dataProvider.SendRequest(_token, url);
            Debug.Write(data);
        }