I'm thinking I'll use this post to document my voyage of discovery and glady recieve any company/advice along the way.
I have little experience with coding in PHP, but have managed to create some great sites with ModX and the fantastic packages available, eg. NewsPublisher, (Many thanks Bob), being one I hope to use as a key player in this development.
I thought I would throw my questions out there in the hope that someone else is trying/has tried/has implemented Google API within a modx site.
Here's what I'm hoping to achieve:
I'd like to be able to integrate Google Drive into my Modx site, so that my users can browse GoogleDocs from the front end and select a document which then displays and embedded version in the page.
I've harnessed the power of Newspublisher and I've acheived a basic version of this with a link Template Variable which I populate with the "share" option in googledocs, which successfully displays an embedded version of the document in the page.
But I would like to integrate the process of browsing and selecting documents into the front end... and much more than this too (Enabling searching of content within googledocs from front end/editable Google Calendar etc). My biggest challenge yet!!!!
I've found some info on using Google Drive as a Media Source (which looks promising):
https://forums.modx.com/thread/78397/google-drive-on-mediasources
I've trawled google's developer site and found this:
https://developers.google.com/drive/examples/php#putting_together_the_pieces_getting_a_complete_set_of_credentials_for_every_request
Which appears to be a great guide to achieving what I want.
I've also found HybridAuth:
http://rtfm.modx.com/extras/revo/hybridauth
Which appears to acheive the Google Authorization process.
Like I say, I'm pretty new/lame when it comes to coding PHP, so feel free to say "Hey Buddy, you're way in over your head here, you need to pay someone else to do this for you" or "Yeah, we can help with a gentle nudge in the right direction, you can fulfil your dreams!"
So I wonder,
- Does HybridAuth actually achieve all the authorization I need set the ball rolling?
- Even sillier question - Do I need to install/locate the Google API libraries in my ModX site to achieve the above, anyone else tried something similar?
- Should I consider other options such as developing with Eclipse+PHP to get off the ground before I even venture into this playground?
- Question to self - Am I asking the right questions in the right way? So many questions......
I'll continue to update my post with additional information as I make more discoveries, which I hope will end in a solution for me that may also help others. So, if anyone wants to join the ride and can provide any "gentle nudges" It would be very much appricatated. Hopefully one day I'll be able to contribute to the answers more one day, than to be asking all the questions.