Documentation
Hi!
Nice script.
Do you know where I have to add this code?
$beefree = new BeeFree([client_id], [client_secret]);
$result = $beefree -> getCredentials();
I can't figure out where.
Thanks
You add it anywhere. I use a MVC so I typically add the code in my control and pass the results to the view. If you use something like Wordpress, use it anywhere in the plugins.
But it should fit anywhere in the design patterns of your infrastructure.
Hi, thanks for your code. Could you give me an example on how to implement credentials in the javascript part? I get token and refresh of token via getCredentials(), but I do not know how to implement this in javascript to load bee plugin.. Thanks in advance, Oliver
OK, got it to work, this is the javescript part:
var token = $credents;
// Call create method and pass token and beeConfig to obtain an instance of BEE Plugin
BeePlugin.create(token, beeConfig, function(beePluginInstance) {
bee = beePluginInstance;
request(
'GET',
'$templatefile',
null,
null,
function(template) {
bee.start(template);
});
});
where $credents is the json_encoded result of getCredentials()...
The input came from this community support link : Bee Comunity