Closed kpettinga closed 6 years ago
@kpettinga @davekellam Hey yall, I 'll share some resources for this on Slack. This part is pretty easy
From Gabriel:
Here are some calendar resources to get started. For upcoming events. We are using a master calendar called "Love your library" You can easily target this calendar with the API. It's an Enpointv1.0, so no access token needed. Calendar ID is 1889
and it needs the user ID also 333
. Here's a simple snippet that I use with Guzzle, that you can easily convert to wp_remote_post
$response = $client->request('GET', 'https://api2.libcal.com/1.0/events/?', [
'query' => [
'iid' => '333',
'cal_id' => '1889',
'key' => LIBCAL_KEY
]
]
);
here's the key too: 7890b35a5725ef6e392809ccd43cfd05
The Hours comes in a variety of formats. Probably best if I point you over to that data. Head over to https://claremont.libcal.com/admin_hours_widgets.php and click on the "Widgets" tab.
I've taken a first pass at implementing these things:
@davekellam Lemme run this by Dave B and hear his thoughts, especially about the notices. I think we are heading the right way though. I'd like to explore more about what use-cases we might employ. Also - potential UI enhancement for the hours - would it be possible to do a hide/show for all the library hours - and also add a hyperlink to the "Hours" page somewhere near the current hours?
Can talk to @gabrielo-cuc about where to find the resources for this