From c3a45c057ae87b82a628a5ecee4676bb48828da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B5nis=20Ormisson?= Date: Sat, 5 May 2018 21:25:56 +0300 Subject: [PATCH 1/2] add .gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9ea0f13 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.* +!.gitignore From df77706b13f3c2e4c448203ef6de6f56d6db7b1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B5nis=20Ormisson?= Date: Sat, 5 May 2018 21:43:20 +0300 Subject: [PATCH 2/2] DEV: update to support API v1.0.1.9 --- README.md | 3 +++ src/Api.php | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/README.md b/README.md index be43989..42de8cb 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,9 @@ This behaviour is not documented by Bondora. ## Bondora API support Bondora API changelog - https://api.bondora.com/ChangeLog ##### Supported versions: +- v1.0.1.9 (02.02.2017) +- v1.0.1.8 (27.09.2016) +- v1.0.1.7 (23.09.2016) - v1.0.1.6 (08.09.2016) - v1.0.1.5 (15.07.2016) - Renamed enum classes: diff --git a/src/Api.php b/src/Api.php index 260ca54..84cbe9d 100644 --- a/src/Api.php +++ b/src/Api.php @@ -1073,8 +1073,31 @@ public function bidCancel($id) { * @return Definition\LoanDatasetItem[] * @throws ApiException * @throws \Exception + * @deprecated discouraged since v1.0.1.9, use publicdataset() instead */ public function loandataset($request=array()) { + return $this->publicdataset($request); + } + + /** + * Provides daily dataset of all loan data that is not covered by the data protection laws. + * + * $request array supported keys: + * loanIds string[] Specific loans to search + * countries string[] Two letter iso code for country of origin: EE, ES, FI + * ratings string[] Bondora's rating: AA, A, B, C, D, E, F, HR + * wasFunded bool Loan was funded + * loanDateFrom date Loan start date from + * loanDateTo date Loan start date to + * pageSize int Max returned results, default is 1000. Range: inclusive between 1 and 1000 + * pageNr int Result page nr. Range: inclusive between 1 and 2147483647 + * + * @param array $request + * @return Definition\LoanDatasetItem[] + * @throws ApiException + * @throws \Exception + */ + public function publicdataset($request=array()) { $resource = 'loandataset'; $array_fields = array(