php - How to get response code from google api oauth2 in controller -


i new codeigniter , php. redirect url given in google api console:

redirect uris:  http://localhost/testgmail/index.php/main/gmail_invite 

following code shows me request permission page. when click allow access takes me to

http://localhost/testsaav/index.php/main/gmail_invite?code=4/cxd462cen-oebe1gahih90hjqb2x.qpvsg7mg4auxadn_6y0zqngacvlxeai 

and gives me error page not found.

how should controller method

function gmail_invites() {    $data = $this->input->get('code'); } 


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -