unfoldml / ms-graph-api Goto Github PK
View Code? Open in Web Editor NEWHaskell SDK to the Microsoft APIs
License: Other
Haskell SDK to the Microsoft APIs
License: Other
Incorporating some code from hoauth could let us expand CI support for other GHC versions
req
which is our http client already imports authenticate-oauth
https://hackage.haskell.org/package/authenticate-oauth so we have overlapping functionality.
If authenticate-oauth
supports both Delegated and App-only authentication we can get rid of hoauth2
.
Get this error while building a program.
app/Main.hs:21:16: error:
Module ‘MSAuth’ does not export ‘OAuth2Token(..)’
|
21 | import MSAuth (OAuth2Token(..))
| ^^^^^^^^^^^^^^^
app/Main.hs:22:81: error:
Module
‘Network.OAuth2.Provider.AzureAD’
does not export
‘IdpApplication’
|
22 | import Network.OAuth2.Provider.AzureAD (OAuthCfg(..), azureOAuthADApp, AzureAD, IdpApplication, GrantTypeFlow(..))
| ^^^^^^^^^^^^^^
app/Main.hs:22:97: error:
Module
‘Network.OAuth2.Provider.AzureAD’
does not export
‘GrantTypeFlow(..)’
|
22 | import Network.OAuth2.Provider.AzureAD (OAuthCfg(..), azureOAuthADApp, AzureAD, IdpApplication, GrantTypeFlow(..))
|
stack.yaml
...
resolver:
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/26.yaml
...
extra-deps:
- ms-auth-0.4.0.0
- validation-micro-1.0.0.0
- dotenv-micro-0.1.0.1
...
But with local ms-auth directory program builds successfully
e.g.
listFilesAndDirectories :
https://learn.microsoft.com/en-us/rest/api/storageservices/list-directories-and-files#request
returns in this format :
<?xml version="1.0" encoding="utf-8"?>
<EnumerationResults ServiceEndpoint="https://myaccount.file.core.windows.net/" ShareName="myshare" ShareSnapshot="date-time" DirectoryPath="directory-path">
<Marker>string-value</Marker>
<Prefix>string-value</Prefix>
<MaxResults>int-value</MaxResults>
<DirectoryId>directory-id</DirectoryId>
<Entries>
<File>
<FileId>file-id</FileId>
<Name>file-name</Name>
<Properties>
<Content-Length>size-in-bytes</Content-Length>
<CreationTime>datetime</CreationTime>
<LastAccessTime>datetime</LastAccessTime>
<LastWriteTime>datetime</LastWriteTime>
<ChangeTime>datetime</ChangeTime>
<Last-Modified>datetime</Last-Modified>
<Etag>etag</Etag>
</Properties>
<Attributes>Archive|Hidden|Offline|ReadOnly</Attributes>
<PermissionKey>4066528134148476695*1</PermissionKey>
</File>
<Directory>
<FileId>file-id</FileId>
<Name>directory-name</Name>
<Properties>
<CreationTime>datetime</CreationTime>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.