Skip to content

Commit

Permalink
v0.2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Vítězslav Dvořák committed Jun 14, 2024
1 parent 8794bb5 commit 0c144e2
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ Destination options
```env
OFFICE365_TENANT=yourcomapny
OFFICE365_SITE=YourSite
OFFICE365_PATH='Shared documents/statements'
```

Into configuration file .env please put ClientID **OR** Login/Password values.
Expand Down
11 changes: 9 additions & 2 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
pohoda-raiffeisenbank (0.1.0) UNRELEASED; urgency=low
pohoda-raiffeisenbank (0.2.0) UNRELEASED; urgency=medium

* Sharepoint & Mssql support added

-- <vitezslav.dvorak@spojenet.cz> Fri, 14 Jun 2024 12:15:33 +0200

pohoda-raiffeisenbank (0.1.0) unstable; urgency=low

[ Vítězslav Dvořák ]
* Initial release. Closes: #nnnn
<nnnn is the bug number of your ITP>

-- Vítězslav Dvořák <info@vitexsoftware.cz> Wed, 22 May 2024 13:45:35 +0200
-- <vitezslav.dvorak@spojenet.cz> Fri, 14 Jun 2024 12:15:13 +0200
58 changes: 56 additions & 2 deletions multiflexi/pohoda_raiffeisenbank.multiflexi.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,63 @@
"DB_PASSWORD": {
"type": "password",
"description": "Database Password",
"defval": "XXXXX",
"defval": "pohodaSQLpassword",
"required": true
},
"DB_SETTINGS": {
"type": "text",
"description": "Database Settings",
"defval": "encrypt=false",
"required": true
},
"OFFICE365_USERNAME": {
"type": "text",
"description": "Office 365 Username",
"defval": "",
"required": false
},
"OFFICE365_PASSWORD": {
"type": "password",
"description": "Office 365 Password",
"defval": "",
"required": false
},
"OFFICE365_CLIENTID": {
"type": "text",
"description": "Office 365 Client ID",
"defval": "",
"required": false
},
"OFFICE365_SECRET": {
"type": "text",
"description": "Office 365 Secret",
"defval": "",
"required": false
},
"OFFICE365_CLSECRET": {
"type": "text",
"description": "Office 365 Client Secret",
"defval": "",
"required": false
},
"OFFICE365_TENANT": {
"type": "text",
"description": "Office 365 Tenant",
"defval": "",
"required": true
},
"OFFICE365_SITE": {
"type": "text",
"description": "Office 365 Site",
"defval": "",
"required": true
},
"OFFICE365_PATH": {
"type": "text",
"description": "Office 365 Path",
"defval": "",
"required": true
}
},
"multiflexi": "1.10.2.0"
}
}
2 changes: 1 addition & 1 deletion src/pohoda-raiffeisenbank-statements.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
}

$ctx = (new ClientContext('https://' . Shared::cfg('OFFICE365_TENANT') . '.sharepoint.com/sites/' . Shared::cfg('OFFICE365_SITE')))->withCredentials($credentials);
$targetFolder = $ctx->getWeb()->getFolderByServerRelativeUrl('Sdilene dokumenty/Banky/novaslozka');
$targetFolder = $ctx->getWeb()->getFolderByServerRelativeUrl(Shared::cfg('OFFICE365_PATH'));

foreach ($pdfs as $filename) {
$uploadFile = $targetFolder->uploadFile(basename($filename), file_get_contents($filename));
Expand Down

0 comments on commit 0c144e2

Please sign in to comment.