/    Sign up×
Community /Pin to ProfileBookmark

PHP – Google API Calendar Add Event using Service Account (Help Required)

I would very much appreciate some help towards my current task.

Colour Coordinated:[COLOR=”#008000″] Green = Achieved[/COLOR], [COLOR=”#FF8C00″]Orange = Half working[/COLOR], [COLOR=”#FF0000″]Red = Unable to yet achieve results[/COLOR]

[COLOR=”#008000″]User fills in 3rd party Joomla Extension Form, (RSForms Pro),
User Clicks Submit,[/COLOR]

(the next events should occur as a background process)

[COLOR=”#FF8C00″]Form data is sent to the PHP script,[/COLOR]
[COLOR=”#FF8C00″]Form data is passed variables,[/COLOR]
[COLOR=”#FF8C00″]Authenticate the connection to google calendar,
Send an INSERT EVENT call to google calendar,
End the session,[/COLOR]

[COLOR=”#FF8C00″]Void the Token,[/COLOR]
(Next event is the next GUI seen by user)
[COLOR=”#008000″]Navigate the user to the homepage.[/COLOR]

If you want to see my current version of the script I have placed it on one of my subdomains: [URL=”http://amazewebs.yitweb.com/#scriptv2″]My current script[/URL]

I understand it may be difficult to grasp the concept, so here’s some additional info:

The Required Process:

Name, Description, DateFrom, DateUntil,
Using Google API v3 and a Service Account…
Take the data as variables,
Authenticate by use of a service account,
Post the data to Google calendar so an event is created,
The user is redirected back to the home page,

So far:

I have managed to get the data added to a Google calendar but using OAuth2.0 and without a service account,
this is a problem, as it requires the user to login to Google and to ‘Accept’ the message presented with a consent screen,
I am looking to bypass the consent screen in order to complete the entire process as a background process.

I have made a YouTube video of my current working progress with OAuth2.0: [URL=”http://www.youtube.com/watch?v=9pU_RvpGqx0″]YouTube Video[/URL]
I have also started a Google group discussion if you are interested in contributing: [URL=”https://groups.google.com/forum/?fromgroups#!topic/google-calendar-api/VTVdWVg3g2g”]Group discussion[/URL]

Any Help is Greatly Appreciated!

Josh.

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @josh1600 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...