Replies: 1 comment 1 reply
-
Hi @dreenot ,
yes, you have to just add them in .env and package will use it from there.
|
Beta Was this translation helpful? Give feedback.
-
Hi @dreenot ,
yes, you have to just add them in .env and package will use it from there.
|
Beta Was this translation helpful? Give feedback.
-
Hello, I'm interested in using your package. It seems very useful. But I didn't understand the instructions for using the package
"Then add these values - client_id, client_secret, api_key and redirect_url in the env file and you can start using the package now."
The client_id, client_secret, api_key and redirect_url comes from the API dashboard on Google's site. And the .env is a file of Laravel's installation. But what am I supposed to do with it? How should I add it? I can't just type it there, I must make it into a constant or something. How is the constant supposed to be called? I can't just give it a random name.
# Replace the identifier with a unqiue identifier for account or channel
$authUrl = $authObject->getLoginUrl('email','identifier');
What identifier and email are we talking about? Is it one of the things from my API like client_id and client_secret or can I type anything? Is it a data from the client, like their channel id? About the email, is it my email, or the user's email? Does it need to be the email that created the Google API? Can it be one of the others set as owner for the Google API?
Beta Was this translation helpful? Give feedback.
All reactions