Welcome Guest, Not a member yet? Register   Sign In
google index api integration
#1
Exclamation 
(This post was last modified: 05-08-2020, 12:42 PM by maverik23.)

Hi everyone, I am trying to integrate the google api to Codeigniter 3.x but I cannot solve the problems.

I have a copy of google / apiclient in the libraries folder
I have a file called google.php in the libraries folder
I have a controller called Google in the controllers folder


libraries/google.php

PHP Code:
<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

require_once 
APPPATH 'Google/Client.php';

class 
Google extends Google_Client {

    function __construct($params = array()) {

        parent::__construct();
    }



Controllers/Google.php
PHP Code:
<?php defined('BASEPATH') or exit('No direct script access allowed');

class 
Google extends CI_Controller
{
    public function __construct() {
        parent::__construct();
        $this->load->library('google');
    }
    
    
public function index()
    {
        echo $this->google->getLibraryVersion();
    }



The problem I have is that when entering the browser the Google controller gives me the error:

"Unable to locate the specified class: Session.php"

How can I solve this error?
Is there a library to use google?
Reply


Messages In This Thread
google index api integration - by maverik23 - 05-08-2020, 12:38 PM
RE: google index api integration - by jreklund - 05-08-2020, 12:46 PM
RE: google index api integration - by maverik23 - 05-08-2020, 01:14 PM
RE: google index api integration - by jreklund - 05-08-2020, 01:23 PM
RE: google index api integration - by maverik23 - 05-08-2020, 05:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB