I am having trouble getting sorting to work, also is there anyway to page results ?
axios.post('https://vroom.looker.com:19999/api/3.0/login?client_id=' + REACT_APP_LOOKER_KEY + '&client_secret=' + REACT_APP_LOOKER_SECRET)
.then(response => {
var lookerToken = response.data.access_token
var vin = '123'
var firstName = 'john'
var lastName = 's'
var vinWildCard = encodeURIComponent(`%${vin}%`)
var firstNameWildCard = encodeURIComponent(`%${firstName}%`)
var lastNameWildCard = encodeURIComponent(`%${lastName}%`)
var sort = 'inventory_table.vin+desc+1'
var limit = 10;
var queryString = `fields=inventory_table.vin,inventory_table.year,sales_table.customer_first_name,sales_table.customer_last_name&f[inventory_table.vin]=${vinWildCard}&f[sales_table.customer_first_name]=${firstNameWildCard}&f[sales_table.customer_last_name]=${lastNameWildCard}&sorts={sort}&limit=${limit}&access_token=${lookerToken}`;
var time = Date.now()
axios.get(`https://vroom.looker.com:19999/api/3.0/queries/models/Operations_Reporting/views/inventory_table/run/json?${queryString}`)
.then(function(response){
console.log(`query took ${Date.now() - time}`)
console.log(response.data);
console.log(response.status);
});
})