i using php sdk mirror api have completed authentication proceess when timeline card exception error throughs
fatal error: uncaught exception 'google_serviceexception' message 'error calling https://www.googleapis.com/mirror/v1/timeline?maxresults=3&key=-dbblcsty21sfv9mtpzoknvxsss: (403) access not configured' in /var/www/glass/google-api-php-client/src/io/google_rest.php:66 stack trace: #0 /var/www/glass/google-api-php-client/src/io/google_rest.php(36): google_rest::decodehttpresponse(object(google_httprequest)) #1 /var/www/glass/google-api-php-client/src/service/google_serviceresource.php(186): google_rest::execute(object(google_httprequest)) #2 /var/www/glass/google-api-php-client/src/contrib/google_mirrorservice.php(434): google_serviceresource->__call('list', array) #3 /var/www/glass/index.php(137): google_timelineserviceresource->listtimeline(array) #4 {main} thrown in /var/www/glass/google-api-php-client/src/io/google_rest.php on line 66
at glance, sounds haven't enabled mirror api in code console project.
- go https://code.google.com/apis/console/ , select project you're working on.
- select
services
menu item on left. - scroll down
google mirror api
, make sure turned on.
if not have api available, means haven't been whitelisted it. if you're glass explorer, contact glass guide using 800 number or email address support , ask permitted. if not glass explorer, api isn't available @ time unless glass explorer permits access 1 of projects.
Comments
Post a Comment