Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] How can I call a Google Application using CI4
#1

(This post was last modified: 05-18-2021, 12:02 AM by John_Betong.)

I have developed a couple of PHP online websites using Google Books API and struggling to get the API to work with CI4.

With PHP I use Composer to download the API then the following couple of lines and it works a treat:

Code:
require_once '/var/www/ci2/vendor/autoload.php';

$tmpUrl = 'https://console.cloud.google.com/home/dashboard?project=PROJECT_NO_GOES_HERE;

$GOOGLE_API_PROJECT_ID = 'API-KEY-GOES-HERE';

 // CI4 ==> "Class "App\Controllers\Google_Client" not found"
 $client = new Google_Client();
Reply


Messages In This Thread
[SOLVED] How can I call a Google Application using CI4 - by John_Betong - 05-17-2021, 12:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB