Skip to content

Commit 3c005e1

Browse files
committed
Merge pull request Fotolia#7 from defro/master
Add method getSeasonalGalleries
2 parents a15aaea + 8b53829 commit 3c005e1

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

php/fotolia-api.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,22 @@ public function getGalleries($language_id = Fotolia_Api::LANGUAGE_ID_EN_US)
201201
));
202202
}
203203

204+
/**
205+
* This method returns public seasonal galleries for a defined language
206+
*
207+
* @param int $language_id
208+
* @return array
209+
*/
210+
public function getSeasonalGalleries($language_id = Fotolia_Api::LANGUAGE_ID_EN_US, $thumbnail_size = 110, $theme_id = null)
211+
{
212+
return $this->_api('getSeasonalGalleries',
213+
array(
214+
'language_id' => $language_id,
215+
'thumbnail_size' => $thumbnail_size,
216+
'theme_id' => $theme_id
217+
));
218+
}
219+
204220
/**
205221
* This method returns Fotolia list of countries.
206222
*
@@ -944,6 +960,7 @@ protected function _getNamespace($method)
944960
case 'getCategories2':
945961
case 'getTags':
946962
case 'getGalleries':
963+
case 'getSeasonalGalleries':
947964
case 'getCountries':
948965
return 'search';
949966

0 commit comments

Comments
 (0)