Ajax call

Ajax call

BJW86BJW86 Posts: 30Questions: 11Answers: 0

Can anyone tell me why this is not working?

ajax: {
        url: 'https://financialmodelingprep.com/api/v3/income-statement/AAPL?limit=120&apikey=1920dcbb65f52e51cf4ceb45d64d6bd9',
        dataSrc: '',
    },
    columns: [
        { data: date },
        { data: symbol },
        { data: revenue },
        { data: grossProfit },
    ]
} );

Thanks

Answers

  • kthorngrenkthorngren Posts: 21,343Questions: 26Answers: 4,954

    You need to put quotes around the object keys, for example:

    { data: "date" },
    

    Kevin

  • BJW86BJW86 Posts: 30Questions: 11Answers: 0

    Ah yes,

    I will try that, thank you Kevin

Sign In or Register to comment.