added id to json export
parent
1c07539f1c
commit
8e660e3147
|
@ -31,7 +31,7 @@
|
|||
. '?singleEvents=true'
|
||||
. '&orderBy=startTime'
|
||||
. '&timeMin=' . date( 'Y-m-d' ) . 'T' . date( 'H' ) . '%3A' . date( 'i' ) . '%3A' . date( 's' ) . '%2B01%3A00'
|
||||
. '&fields=description%2Citems(description%2Crecurrence%2Csummary%2Clocation%2Cstart%2Cend)%2Csummary'
|
||||
. '&fields=description%2Citems(description%2Crecurrence%2Csummary%2Clocation%2Cstart%2Cend%2id)%2Csummary'
|
||||
. '&key=' . $app[ 'google' ][ 'api_key' ];
|
||||
|
||||
return Helpers::JSON2Array( $googleCalendarJson );
|
||||
|
@ -132,6 +132,7 @@
|
|||
|
||||
$event = self::getEventDateTime( $googleEvent );
|
||||
|
||||
$event[ 'id' ] = $googleEvent[ 'id' ];
|
||||
$event[ 'name' ] = $googleEvent[ 'summary' ];
|
||||
|
||||
if ( array_key_exists( 'location' , $googleEvent ) ){
|
||||
|
|
Loading…
Reference in New Issue