Skip to content

Commit b3a7b2f

Browse files
committed
Github:11728 (small fix)
1 parent 7070a18 commit b3a7b2f

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

Project/Sources/Classes/Office365Calendar.4dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ Function getEvent($inParameters : Object) : Object
208208
Super._clearErrorStack()
209209

210210
Case of
211-
: (Type($inParameters.eventId)#Is text)
211+
: (Value type($inParameters.eventId)#Is text)
212212
Super._throwError(10; {which: "\"eventId\""; function: "office365.calendar.getEvent"})
213213

214214
: (Length(String($inParameters.eventId))=0)
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
//%attributes = {}
2+
var $options:={}
3+
$options.permission:="signedIn"
4+
$options.timeout:=30
5+
$options.redirectURI:="http://127.0.0.1:50993/authorize/"
6+
$options.accessType:="offline"
7+
$options.PKCEEnabled:=True:C214
8+
$options.enableDebugLog:=True:C214
9+
10+
If (True:C214)
11+
$options.name:="Microsoft"
12+
$options.clientId:="7008ebf5-f013-4d92-ad5b-8c2252c460fc"
13+
$options.scope:="https://graph.microsoft.com/.default"
14+
Else
15+
$options.name:="Google"
16+
$options.clientId:="31264495209-ot6tevrkqj7c62tnieqmp7uq2i680d26.apps.googleusercontent.com"
17+
$options.clientSecret:="auROtyUBnPcH01aqo6eu3Ae5"
18+
$options.scope:="https://mail.google.com/"
19+
$options.mail:="yannick.trinh@gmail.com"
20+
//$options.loginHint:=$options.mail
21+
//$options.prompt:="consent" // none ; consent ; select_account
22+
End if
23+
HTTP SET OPTION:C1160(HTTP client log:K71:16; HTTP enable log with all body parts:K71:21)
24+
25+
TRACE:C157
26+
var $oauth2:=cs:C1710.OAuth2Provider.new($options)
27+
var $token : Object:=$oauth2.getToken()
28+
29+
HTTP SET OPTION:C1160(HTTP client log:K71:16; HTTP disable log:K71:17)

0 commit comments

Comments
 (0)