diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9ea0f13 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.* +!.gitignore 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(