File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -103,9 +103,10 @@ public function getEvents($brandId = null)
103103 *
104104 * @param string $eventName
105105 * @param integer $brandId Brand ID to create event in; optional.
106+ * @param string $eventDate Date of Event (aka "Shoot Date"); optional.
106107 * @return array
107108 */
108- public function createEvent ($ eventName , $ brandId = null )
109+ public function createEvent ($ eventName , $ brandId = null , $ eventDate = null )
109110 {
110111 if (is_null ($ eventName ) || $ eventName == '' ) {
111112 throw new Exception ('The eventName is required to create a new event. ' );
@@ -120,6 +121,10 @@ public function createEvent($eventName, $brandId = null)
120121 $ params ['brand_id ' ] = $ brandId ;
121122 }
122123
124+ if (strlen ($ eventDate ) > 0 ) {
125+ $ params ['event_date ' ] = $ eventDate ;
126+ }
127+
123128 return $ this ->_makeApiRequest ($ params );
124129 }
125130
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class Sp_Lib
1212 *
1313 * @var string
1414 */
15- protected $ _version = 'php-1.6.0 ' ;
15+ protected $ _version = 'php-1.6.1 ' ;
1616
1717 /**
1818 * Wrapper method to make an api request
You can’t perform that action at this time.
0 commit comments