1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { ConstructReadTangleUrl2 } from "https://esm.town/v/willthereader/ConstructReadTangleUrl2";
import { logMessage } from "https://esm.town/v/willthereader/logMessage";
// File: testUrlConstructionVal.js in Val Town (Named: @username.testUrlConstructionVal)
export const testUrlConstructionVal = (async () => {
// Reference the function from the other Val
// Example input
const order = ["created_at DESC", "id DESC"]; // Sorting order for comments
const timestamp = "2024-01-19T17:00:00.000Z"; // Filtering criteria
const page = 1; // Page number to fetch
// Invoke the function from the other Val
const constructedUrl = ConstructReadTangleUrl2(timestamp);
logMessage("debug", `Constructed URL: ${constructedUrl}`);
return constructedUrl;
})(); // Note the () here for immediate invocation
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
February 7, 2024