This function can be used to further filter any UGC query made using the ugc_query_RankedByTrend constant, specifically to search over a number of days. The query handle is the value returned when you created the query (using, for example, steam_ugc_create_query_user()) and the second argument is the number of days over which you want the query to run. The function will return true if the query filter was correctly set, or false otherwise.
steam_ugc_query_set_ranked_by_trend_days(ugc_query_handle , days);
|ugc_query_handle||The query handle to use.|
|days||The number of days to query.|
var query_handle =
query_ID = steam_ugc_send_query(query_handle);
The above code creates a query request and stores it's handle in a local variable for future use in the rest of the functions which further define the query request before sending the query.