Using Web APIs in DataFlex

Using Web APIs in DataFlex

DataFlex UK Seminar - Mike Peat

Pennyhill Park, Bagshot, UK

April 22nd 2015


Web APIs

Generally:


REST


POST vs PUT vs PATCH


Verbs


New for DataFlex 18.1


HttpVerbAddrRequest function

Get HttpVerbAddrRequest {path} {address} {length} ;
{is-file} {HTTP-verb} to {integer}

So...

String sDataInteger iOKMove "some stuff (serialised JSON usually)" to sDataGet HttpVerbAddrRequest "api/v1.0/me/sendmail" ;     (AddressOf(sData)) (Length(sData)) False "POST" ;                       to iOK

JSON


Parsing and serialising JSON


Microsoft Office 365


Office 365 Mail API operations


Office 365 Contacts API operations


Office 365 Calendar API operations


Office 365 Files API operations


Authentication


User ID and Password


OAuth2


Microsoft OAuth2


MS OAuth2 continued...


Microsoft JSON oddities


Demonstration

Web APIs presentation 2015

 


Other APIs


Google Web APIs


Google OAuth 2.0


Google OAuth 2.0 continued


Demonstration

Web APIs (2) presentation


That was...


So far...


End of Presentation