Skip to content

Instantly share code, notes, and snippets.

View Meng-V's full-sized avatar
🎯
Focusing

Meng Meng-V

🎯
Focusing
View GitHub Profile

This is for "today" usage only.

Eveyday @7AM, a CRON job will retrieve past day events from DB. Make sure these events' dates are for today only.

flowchart TD
    A([Start]) --> B[Email Server: Received a new email from reserve\@something.miamioh.edu]
    B --> C[Nodejs: fs. Read log and extract email for BookingID]
    C --> |input BookingID| D[LibCalAPI: GET. NetID, Confirm or Cancel, Date&Time, Location&Room, Stud2&Stud3]
@Meng-V
Meng-V / crowd-index.js
Created November 13, 2024 20:42
Crowd Index customized for Rec
async function getData() {
await axios
// For Rec, the endpoint is 'https://www.lib.miamioh.edu:3012/recapi'
.get('https://www.lib.miamioh.edu:3012/recapi', {
crossDomain: true
})
.then(res => {
var patronNumber = parseInt(res.data.patronCount);
if (patronNumber < 0) {
<html>
<head>
<title>Sample PHP application for Wild Apricot API</title>
</head>
<body>
<p>
This application demonstrates how to use Wild Apricot API v2.
See http://help.wildapricot.com/display/DOC/API+Version+2 for detailed description of API.<br/>