GithubHelp home page GithubHelp logo

unfoldml / ms-graph-api Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 173 KB

Haskell SDK to the Microsoft APIs

License: Other

Haskell 99.94% Makefile 0.06%
microsoft-graph-api rest-api-client microsoft-azure-sdk microsoft-graph-sdk microsoft-identity azure cloud-api

ms-graph-api's People

Contributors

ocramz avatar

Stargazers

 avatar  avatar

Watchers

 avatar

ms-graph-api's Issues

vendor in hoauth2

Incorporating some code from hoauth could let us expand CI support for other GHC versions

Import error while building

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

Handle XML response bodies

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>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.