Good spotting, fixed.


On 8 November 2013 16:59, Wes <notifications@github.com> wrote:

> In src/pages/SpiderwebChart.page:
>
> > +
> > +			// the id of the Salesforce report
> > +		    var reportId = '{!$CurrentPage.parameters.
> reportId}';
> > +		
> > +		    if (reportId) {
> > +	
> > +	            // We'll keep the report data around for the life of the page
> > +	            var report = null;
> > +	
> > +	            // Fetch the JSON data representing the the report
> > +			    var jsonData = JSON.parse($.ajax({
> > +			        beforeSend: function(xhr) {
> > +			          xhr.setRequestHeader('Authorization', 'Bearer {!$Api.Session_ID}');
> > +			    	},
> > +			        // You'll need a URL parameter key called "reportid" that has a Summary Report id value
> > +			        url: "/services/data/v29.0/analytics/reports/{!$CurrentPage.parameters.reportId}",
>
> Cool, so line 12 is updated. You should probably change line 25 to use the
> var called "reportId"?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/wesnolte/Analytics-API-Demos/pull/3/files#r7531930>
> .
>