-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
655 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
basic_in.ur | ||
*.exe | ||
*.sql | ||
zoomSecrets.ur |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
(* For this demo, it's necessary to create zoomSecrets.urs, | ||
* defining [api_key] and [api_secret]. *) | ||
structure Z = Zoom.Make(Zoom.TwoLegged(ZoomSecrets)) | ||
|
||
fun main () = | ||
rs <- Z.Meetings.list; | ||
return <xml><body> | ||
<ul> | ||
{List.mapX (fn r => <xml><li>{[r.Topic]} ({[r.StartTime]}, {[case r.Typ of | ||
Zoom.Scheduled => "scheduled" | ||
| _ => "other"]})</li></xml>) rs} | ||
</ul> | ||
|
||
<h3>Create Meeting</h3> | ||
|
||
<form> | ||
Topic: <textbox{#Topic}/><br/> | ||
Starts: <textbox{#StartTime}/><br/> | ||
<submit action={create}/> | ||
</form> | ||
</body></xml> | ||
|
||
and create r = | ||
Monad.ignore (Z.Meetings.create ({Topic = r.Topic, | ||
Typ = Zoom.Scheduled} | ||
++ Api.optionals {StartTime = readError r.StartTime, | ||
Duration = 30, | ||
Settings = Api.optionals {Audio = Zoom.Voip}})); | ||
redirect (url (main ())) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
library ../src/ur | ||
rewrite all ZoomDemo/* | ||
database dbname=zoomDemo | ||
sql zoomDemo.sql | ||
safeGetDefault | ||
allow url https://api.zoom.us/* | ||
|
||
zoomSecrets | ||
zoomDemo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
val main : unit -> transaction page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
fun optionals [yes ::: {Type}] [no ::: {Type}] [yes ~ no] | ||
(yfl : folder yes) (nfl : folder no) | ||
(r : $yes) = | ||
@mp [ident] [option] (fn [t] => Some) yfl r | ||
++ @map0 [option] (fn [t ::_] => None) nfl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
val optionals : yes ::: {Type} -> no ::: {Type} -> [yes ~ no] | ||
=> folder yes -> folder no | ||
-> $yes | ||
-> $(map option (yes ++ no)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,12 @@ $/json | |
$/monad | ||
$/option | ||
$/list | ||
$/datetime | ||
api | ||
urls | ||
oauth | ||
clearbit | ||
github | ||
salesforce | ||
zoom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
val urlencode : string -> string | ||
val urldecode : string -> string | ||
|
||
val base64url_encode : string -> string | ||
val base64url_encode_signature : WorldFfi.signatur -> string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.