Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter neeat

    (@neeat)

    Hi ,

    Thanks for your update. I already checked all these links before posting this post.

    1. I create new calendar for APP+
    2. I follow the all steps given in google calendar.
    3. Appointments will be sent to Google Calendar for….set to All

    After that synchronization with google calendar not working.

    According to my analysis app+ not getting the value of Service account email address and Calendar to be used in header.

    Thread Starter neeat

    (@neeat)

    Email value “Service account email address” and “Calendar to be used” are not set up in decodeHttpResponse when appointment made by app+ calendar but it set up on test connection.
    PFA of decoderesponse array and pass it to your support team.


    <?php //Responce when appoinment made by calendar
    //$httpRequest = Google_Client::$io->makeRequest($req);
    //Responce of makerequest function
    ?>

    Google_HttpRequest Object ( [batchHeaders:Google_HttpRequest:private] => Array ( [Content-Type] =>
    application/http [Content-Transfer-Encoding] => binary [MIME-Version] => 1.0 [Content-Length] => ) [url:protected] => https://www.googleapis.com/calendar/v3/calendars/g40cbd1r2h4i7arm3o13m955ec@group.calendar.google.com/events?timeMin=2014-09-11T12%3A36%3A28%2B00%3A00&timeMax=2015-09-11T12%3A36%3A28%2B00%3A00&singleEvents=true&maxResults=500&orderBy=startTime [requestMethod:protected] => GET

    [requestHeaders:protected] => Array

    ( [authorization] => Bearer ya29.fQB2qRl5K8GaaSurTK2Q9o2vy2RiX_RrFOYxQA3fzD6D6npWLhn27uG9 ) [postBody:protected] => [userAgent:protected] => Appointments google-api-php-client/0.6.0 [responseHttpCode:protected] => 200

    [responseHeaders:protected] => Array ( [expires] => Thu, 11 Sep 2014 07:06:43 GMT [date] => Thu, 11 Sep 2014 07:06:43 GMT [cache-control] => private, max-age=0, must-revalidate, no-transform [content-type] => application/json; charset=UTF-8 [x-content-type-options] => nosniff [x-frame-options] => SAMEORIGIN [x-xss-protection] => 1; mode=block [content-length] => 255 [server] => GSE [alternate-protocol] => 443:quic,p=0.002 )

    [responseBody:protected] => { “kind”: “calendar#events”, “etag”: “\”1410352247775000\””, “summary”: “appointment ipower”, “description”: “”, “updated”: “2014-09-10T12:30:47.775Z”, “timeZone”: “America/New_York”, “accessRole”: “writer”, “defaultReminders”: [], “items”: [] } [accessKey] => )

    <?php //$decodedResponse = self::decodeHttpResponse($httpRequest);
    //Responce from decodehttpresponce
    ?>
    Array ( [kind] => calendar#events [etag] => “1410352247775000” [summary] => appointment ipower [description] => [updated] => 2014-09-10T12:30:47.775Z [timeZone] => America/New_York [accessRole] => writer [defaultReminders] => Array ( ) [items] => Array ( ) )

    <?php //return value ?>
    Array ( [kind] => calendar#events [etag] => “1410352247775000” [summary] => appointment ipower [description] => [updated] => 2014-09-10T12:30:47.775Z [timeZone] => America/New_York [accessRole] => writer [defaultReminders] => Array ( ) [items] => Array ( ) )


    <?php
    //Responce when test the connection from google calendar
    //$httpRequest = Google_Client::$io->makeRequest($req);
    //Responce of makerequest function
    ?>
    Google_HttpRequest Object ( [batchHeaders:Google_HttpRequest:private] => Array ( [Content-Type] => application/http [Content-Transfer-Encoding] => binary [MIME-Version] => 1.0 [Content-Length] => ) [url:protected] => https://www.googleapis.com/calendar/v3/calendars/g40cbd1r2h4i7arm3o13m955ec@group.calendar.google.com/events [requestMethod:protected] => POST [requestHeaders:protected] => Array ( [content-type] => application/json; charset=UTF-8 [content-length] => 335 [authorization] => Bearer ya29.fQCEyDh535s9ERRg0oDSZn_tLrGP3etlYrqD7XklE6Oe6jcLdmiK9j42 ) [postBody:protected] => {“summary”:”Default Service Appointment”,”attendees”:[{“email”:”changeme@changeme.com”}],”start”:{“dateTime”:”2014-09-11T07:19:03Z”},”location”:”Just another WordPress site”,”description”:”Client Name: Test client name\r\nService Name: Default Service\r\nService Provider Name: Our staff\r\n”,”end”:{“dateTime”:”2014-09-11T07:49:03Z”}} [userAgent:protected] => Appointments google-api-php-client/0.6.0 [responseHttpCode:protected] => 200 [responseHeaders:protected] => Array ( [cache-control] => no-cache, no-store, max-age=0, must-revalidate [pragma] => no-cache [expires] => Fri, 01 Jan 1990 00:00:00 GMT [date] => Thu, 11 Sep 2014 07:09:18 GMT [etag] => “2820838717030000” [content-type] => application/json; charset=UTF-8 [x-content-type-options] => nosniff [x-frame-options] => SAMEORIGIN [x-xss-protection] => 1; mode=block [server] => GSE [alternate-protocol] => 443:quic,p=0.002 [transfer-encoding] => chunked ) [responseBody:protected] => { “kind”: “calendar#event”, “etag”: “\”2820838717030000\””, “id”: “0lp1rpdgibob45lp89bjfas1vg”, “status”: “confirmed”, “htmlLink”: “https://www.google.com/calendar/event?eid=MGxwMXJwZGdpYm9iNDVscDg5YmpmYXMxdmcgZzQwY2JkMXIyaDRpN2FybTNvMTNtOTU1ZWNAZw&#8221;, “created”: “2014-09-11T07:09:18.000Z”, “updated”: “2014-09-11T07:09:18.515Z”, “summary”: “Default Service Appointment”, “description”: “Client Name: Test client name\r\nService Name: Default Service\r\nService Provider Name: Our staff\r\n”, “location”: “Just another WordPress site”, “creator”: { “email”: “389115331592-u3imufmugkcbttspbd3u59f0aa8tvuop@developer.gserviceaccount.com” }, “organizer”: { “email”: “g40cbd1r2h4i7arm3o13m955ec@group.calendar.google.com”, “displayName”: “appointment ipower”, “self”: true }, “start”: { “dateTime”: “2014-09-11T03:19:03-04:00” }, “end”: { “dateTime”: “2014-09-11T03:49:03-04:00” }, “iCalUID”: “0lp1rpdgibob45lp89bjfas1vg@google.com”, “sequence”: 0, “attendees”: [ { “email”: “changeme@changeme.com”, “responseStatus”: “needsAction” } ], “reminders”: { “useDefault”: true } } [accessKey] => )

    <?php //$decodedResponse = self::decodeHttpResponse($httpRequest);
    //Responce from decodehttpresponce
    ?>

    Array ( [kind] => calendar#event [etag] => “2820838717030000” [id] => 0lp1rpdgibob45lp89bjfas1vg [status] => confirmed [htmlLink] => https://www.google.com/calendar/event?eid=MGxwMXJwZGdpYm9iNDVscDg5YmpmYXMxdmcgZzQwY2JkMXIyaDRpN2FybTNvMTNtOTU1ZWNAZw [created] => 2014-09-11T07:09:18.000Z [updated] => 2014-09-11T07:09:18.515Z [summary] => Default Service Appointment [description] => Client Name: Test client name Service Name: Default Service Service Provider Name: Our staff [location] => Just another WordPress site [creator] => Array ( [email] => 389115331592-u3imufmugkcbttspbd3u59f0aa8tvuop@developer.gserviceaccount.com ) [organizer] => Array ( [email] => g40cbd1r2h4i7arm3o13m955ec@group.calendar.google.com [displayName] => appointment ipower [self] => 1 ) [start] => Array ( [dateTime] => 2014-09-11T03:19:03-04:00 ) [end] => Array ( [dateTime] => 2014-09-11T03:49:03-04:00 ) [iCalUID] => 0lp1rpdgibob45lp89bjfas1vg@google.com [sequence] => 0 [attendees] => Array ( [0] => Array ( [email] => changeme@changeme.com [responseStatus] => needsAction ) ) [reminders] => Array ( [useDefault] => 1 ) )

    <?php //return value ?>

    Array ( [kind] => calendar#event [etag] => “2820838717030000” [id] => 0lp1rpdgibob45lp89bjfas1vg [status] => confirmed [htmlLink] => https://www.google.com/calendar/event?eid=MGxwMXJwZGdpYm9iNDVscDg5YmpmYXMxdmcgZzQwY2JkMXIyaDRpN2FybTNvMTNtOTU1ZWNAZw [created] => 2014-09-11T07:09:18.000Z [updated] => 2014-09-11T07:09:18.515Z [summary] => Default Service Appointment [description] => Client Name: Test client name Service Name: Default Service Service Provider Name: Our staff [location] => Just another WordPress site [creator] => Array ( [email] => 389115331592-u3imufmugkcbttspbd3u59f0aa8tvuop@developer.gserviceaccount.com ) [organizer] => Array ( [email] => g40cbd1r2h4i7arm3o13m955ec@group.calendar.google.com [displayName] => appointment ipower [self] => 1 ) [start] => Array ( [dateTime] => 2014-09-11T03:19:03-04:00 ) [end] => Array ( [dateTime] => 2014-09-11T03:49:03-04:00 ) [iCalUID] => 0lp1rpdgibob45lp89bjfas1vg@google.com [sequence] => 0 [attendees] => Array ( [0] => Array ( [email] => changeme@changeme.com [responseStatus] => needsAction ) ) [reminders] => Array ( [useDefault] => 1 ) )

    Thread Starter neeat

    (@neeat)

    I am getting the problem in SSL cert : Log display the erro: { Either 1) Connection error to Google server. You may neglect this message if it is happening sporadically, or 2) SSL certificate problem, verify that the CA cert is OK.}

    So i debug the code and found below code in Google_CurlIO.php.

    `if (curl_errno($ch) == CURLE_SSL_CACERT) {
    global $appointments;
    $appointments->log( __( ‘Either 1) Connection error to Google server. You may neglect this message if it is happening sporadically, or 2) SSL certificate problem, verify that the CA cert is OK.’, ‘appointments’ ) ); ‘

    my question: Is SSL required in localhost..??

Viewing 3 replies - 1 through 3 (of 3 total)