× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



To be clear, the callback is only for the initial token and that can be
done manually, although it's a little messy.

After that there is no need for the HTTPS callback unless you need to
reauthorize an account (which I've found with MS can happen for any
reason). So I would be curious how he skirted it.

On Thu, Apr 30, 2020 at 5:43 AM Bruce Vining <bruce.vining@xxxxxxxxx> wrote:

Tim,

Sure, but let me first talk to the Microsoft person here (my knowledge of
Microsoft is pathetic...) and see exactly how he configured my
program/requester. It runs as a batch job and is certainly headless.

On Thu, Apr 30, 2020 at 5:17 AM Tim Fathers <X700-IX2J@xxxxxxxxxxx> wrote:

Bruce, I have to use the Graph APIs for a non-IBM i project, which will
be
a daemon job in the background sending and reading mail on behalf of a
user. Any chance I could pick your brains about the token requesting in a
headless scenario (i.e. where I cannot redirect the user to a log-in
page)?

Cheers,

Tim.

________________________________
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> on behalf of
Bruce Vining <bruce.vining@xxxxxxxxx>
Sent: 29 April 2020 23:12
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx

Subject: Re: Anyone Using Microsoft Graph Calendar APIs from the IBM i?

Just in case anyone finds this discussion, I do have Outlook cloud
calendar
creates, updates, and deletes working from the i. I am taking advantage
of
the httpapi and yajl support that's available (thanks Scott), and, hoping
that it will help someone some day, I'll simply say it wasn't that hard
(and that some of the Microsoft documentation is, well, not so great --
for
instance there isn't a need for a call back approach). My code, needless
to
say, is **free RPG.

On Tue, Apr 21, 2020 at 5:40 PM B Stone <bvstone@xxxxxxxxx> wrote:

I have written interfaces for a few Office APIs (email, SMTP,
OneDrive).
Not Calendar yet, though (but I did for Google Calendar) as I haven't
used
it personally or had requests for it.

You do need application permissions and OAuth 2.0 flow, which really is
the
most challenging part, especially since microsoft requires a callback
for
the initial OAuth authentication. (this can be skirted with a few
tricks,
though).

My GreenTools for Microsoft Apps (G4MS) now uses the Graph APIs for
everything as well, so creating a calendar hook wouldn't be terrible.
I
believe you could even use the G4MS base for OAuth 2.0 like I have set
up
for my Google API package as well. I could easily create a simple
calendar
package if you were interested with some basic functions.

Bradley V. Stone


https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.bvstools.com%2F&amp;data=02%7C01%7C%7C93cad3820e3a4939c04808d7ec821ad1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637237915847928597&amp;sdata=AwXzG34RWz%2FwusZmNArs2GvERenP2PzmBO46mqZ9Ogs%3D&amp;reserved=0
GreenTools for PayPal <

https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.bvstools.com%2Fg4pp.html&amp;data=02%7C01%7C%7C93cad3820e3a4939c04808d7ec821ad1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637237915847928597&amp;sdata=ZlJzKMASq%2FcoTJo92Lwrd%2B7RINV78EmhSJ3GcnHUOP0%3D&amp;reserved=0
:
Easily send
PayPal invoices from your IBM i applications using RPG ILE! Process
refunds, get account balances and more!

On Tue, Apr 21, 2020 at 3:31 PM Bruce Vining <bruce.vining@xxxxxxxxx>
wrote:

I have the need to create and maintain cloud based Outlook calendars
from
the i. The various calendar APIs (




https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fresources%2Fcalendar%3Fview%3Dgraph-rest-1.0&amp;data=02%7C01%7C%7C93cad3820e3a4939c04808d7ec821ad1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637237915847928597&amp;sdata=8%2BHTWwCjz1aqn9jrk%2F1ln5xC%2FKkQSYNqotZ57sEvcro%3D&amp;reserved=0
)
seem sufficient but I do have questions on configuration and hope
someone
out there has been down this path before.



First some background. Various dates and times are maintained on
the i
related to the progress of orders. Some of these dates and times
correspond to meetings that need to be held involving several
individuals
(who will vary based on the specific order). All of these
individuals
do
use Office 365/Outlook calendar and currently operators on the i must
manually maintain these calendar entries whenever the date and/or
time
of
the meeting changes back in the i. What I want to do is capture the
database changes and basically feed them through a *DTAQ to a job (or
jobs)
that are using the Graph APIs to eliminate the manual approach
currently
being used. So far so good, all of the *DTAQ entries are getting
there
just fine. Now it’s time for the Microsoft Graph configuration work…



In reviewing the Graph documentation it appears that I want to use is
application permissions. Has anyone used such an approach? If so,
any
advice/examples/warnings to share? The company here has never set
anything
up for application permissions, I certainly never have, and I’m not
authorized to do any “playing around” on the Microsoft side so I need
to
get the configuration “right” the first time. There are many sites (




https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fdevelop%2Fquickstart-configure-app-access-web-apis&amp;data=02%7C01%7C%7C93cad3820e3a4939c04808d7ec821ad1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637237915847938591&amp;sdata=Gka4qw9wT94Kww2WufheQVFp1%2F5j%2FNGxKCIA0ZT%2BkfU%3D&amp;reserved=0
being
one) that talk about setting up application permissions but I’m
concerned
that my use of terminology doesn’t exactly fit with Microsoft use of
terminology, and there’s way too many warnings in the various sites
for
my
comfort (given my general feeling that I’m missing “something” due to
these
terminology/conceptual differences).



Any guidance from those who have been here before?



Thanks,

Bruce



PS – I’m confident that using the Graph APIs will be “educational”
and
I’m
comfortable with that. I just want to make sure I’m not going down a
bad
path in getting the two systems to talk with each other. That is,
getting
the basic networking configurations in place.



--
Thanks and Regards,
Bruce
931-505-1915
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:

https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Fmidrange-l&amp;data=02%7C01%7C%7C93cad3820e3a4939c04808d7ec821ad1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637237915847938591&amp;sdata=Qwukwes74sOsOwu3G2%2F0PZHpt5escJDZta%2FT3HwZIdo%3D&amp;reserved=0
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at

https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Fmidrange-l&amp;data=02%7C01%7C%7C93cad3820e3a4939c04808d7ec821ad1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637237915847938591&amp;sdata=P7%2FiWwLrugRtEALmL3rLVOntyU2H8Zh0i4%2BZ2pmK%2FBc%3D&amp;reserved=0
.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related
questions.

Help support midrange.com by shopping at amazon.com with our
affiliate
link:

https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Famazon.midrange.com%2F&amp;data=02%7C01%7C%7C93cad3820e3a4939c04808d7ec821ad1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637237915847938591&amp;sdata=9%2BnxUPoLshVypCnJAEfkXgBJ4zpqvY8sTyuVBXjSuuY%3D&amp;reserved=0

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:

https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Fmidrange-l&amp;data=02%7C01%7C%7C93cad3820e3a4939c04808d7ec821ad1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637237915847938591&amp;sdata=Qwukwes74sOsOwu3G2%2F0PZHpt5escJDZta%2FT3HwZIdo%3D&amp;reserved=0
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at

https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Fmidrange-l&amp;data=02%7C01%7C%7C93cad3820e3a4939c04808d7ec821ad1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637237915847938591&amp;sdata=P7%2FiWwLrugRtEALmL3rLVOntyU2H8Zh0i4%2BZ2pmK%2FBc%3D&amp;reserved=0
.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link:

https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Famazon.midrange.com%2F&amp;data=02%7C01%7C%7C93cad3820e3a4939c04808d7ec821ad1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637237915847938591&amp;sdata=9%2BnxUPoLshVypCnJAEfkXgBJ4zpqvY8sTyuVBXjSuuY%3D&amp;reserved=0



--
Thanks and Regards,
Bruce
931-505-1915
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:

https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Fmidrange-l&amp;data=02%7C01%7C%7C93cad3820e3a4939c04808d7ec821ad1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637237915847938591&amp;sdata=Qwukwes74sOsOwu3G2%2F0PZHpt5escJDZta%2FT3HwZIdo%3D&amp;reserved=0
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at

https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Fmidrange-l&amp;data=02%7C01%7C%7C93cad3820e3a4939c04808d7ec821ad1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637237915847938591&amp;sdata=P7%2FiWwLrugRtEALmL3rLVOntyU2H8Zh0i4%2BZ2pmK%2FBc%3D&amp;reserved=0
.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link:

https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Famazon.midrange.com%2F&amp;data=02%7C01%7C%7C93cad3820e3a4939c04808d7ec821ad1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637237915847938591&amp;sdata=9%2BnxUPoLshVypCnJAEfkXgBJ4zpqvY8sTyuVBXjSuuY%3D&amp;reserved=0
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com



--
Thanks and Regards,
Bruce
931-505-1915
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.