I'm trying to create a calendar to be shown in the list of calendars in a specefic user.
For example this calendar folder have the name Sample like presented by that capture:
That done with success under a the service account.
Could you please tell me how can I do it with a specific user ?.
Could you help me. Big thanks.
Take a look to those threads https://developers.google.com/calendar/v3/reference/calendars/insert and https://developers.google.com/calendar/v3/reference/acl/insert.
HTH
Related
I'm working on a product being targeted to companies with employees. We get a collection of employee emails to which we need to register them for an account on our firebase platform.
Ideally what I'd like to do is use this data to create all the user accounts on firebase then email them all a unique magic key to verify their registration and let them input a password.
Unfortunately I'm a bit stuck on making the magic link custom tailored to the users email. Looking at firebases dynamic link creator it doesn't look like there's a way to create a dynamic magic link where I can input something unique about the user account to later identify them after they click on it to give them the correct onboarding platform.
Any ideas how I could accomplish this?
You can create tailored Firebase Dynamic Links for each of your users. If you creating links server side, check out REST API https://firebase.google.com/docs/dynamic-links/rest .
For example in this long dynamic link https://abc123.app.goo.gl/?link=https://example.com/&apn=com.example.android&ibi=com.example.ios the deep link is https://example.com/. You can use deep link looking like https://example.com/invite_user?user_id=<here unique user id>.
You may need to check out Firebase Authentication https://firebase.google.com/docs/auth/ as well. Better to create separate question for each step you seeking advise.
I am using Drupal 7 and a custom CCK content in order to allow users to submit information to our website. I'd like to be able to only allow submissions between a set of user definable dates. Once the dates expire, i'd like for the user to receive a message of some sort stating that the deadline for submissions is now expired when they click the link to open the form.
I currently manually go in and turn off permissions to the content type once the deadline expires, but that is clunky and requires a little too much management (I have 15 forms I need to do this for). I've searched stack overflow and google and have not come up with anything that fit my needs, most likely because I'm not using the right keywords.
Does anyone know an easy way to do this with a module or do I need to try to write my own in order to accomplish this goal? Thanks in advance for any help.
I think you have to write some custom module to achieve this. You would use hook_node_access() to control node creation page access and and put your error message and/or redirection.
https://api.drupal.org/api/drupal/modules%21node%21node.api.php/function/hook_node_access/7
Another solution is to use Webform module.
https://www.drupal.org/project/webform
Download version 7.x-4.x
Create a form and in the settings there is an option to control total submissions limit, and set time frames for limitations.
Hope this helps.
You can achieve this by:
Create a column in user table in mysql called "expDate", assign the expDate values(mm-dd-yyyy) to each user
In drupal, on the page where users summit message, write php code to grab the expDate from database, and compare it to Current Date, date('mm-dd-yyyy'). Just copy can paste the php codes in each page where you have the form.
You can also pass the expDate from php to js, then do some fancy job instead of simple alert.
For historical reasons some profiles were set up under one account. At a later time new sites were added in their own accounts. I am wanting to move some profiles out from under the account they are currently under and into their own accounts. I cannot figure out how to do this and have scoured the help files looking for how this is accomplished. Anyone know if it's possible?
I don't believe what you're trying to accomplish is possible. You collect data under a unique ID (UA - ID) this is called a property. Off of that property you can build profiles to view a subset of data. Profile can be recreated under a new property, but it wouldn't have any historical data.
For more info, you can check out - https://developers.google.com/analytics/resources/concepts/gaConceptsAccounts
I've been asked to set-up some custom variables but as I'm new to it, have no idea on how to get started. I have researched as much as I can but am getting confused.
Here's what I need to do:
An app generates a unique URL in the form http://www.example.com/folder/?userID=12345&BookTitle=ABCDE&DateAndTime=201208080800. I then need the custom variables from the URL ('UserID',
'BookTitle' and 'DateAndTime') to be passed to Google Analytics so I can track which users of the app are visiting the page at that URL.
I've looked into setting up custom variables but don't understand if I need 3 separate lines of code for the 3 separate variables nor how I can pass the various elements of the URL through to these.
Can anyone shed any light on how I might go about doing this?
Many thanks for any help in advance.
-Jack
Never mind. It turns out this kind of usage is against Google Analytics' TOS.
Going about it a different way by asking the user for some info up-front instead.
Google's ToS has changed. You can do this now as long as the UserID is internal to you and cannot be used to identify the customer (by Google).
I am working Calendar API (Java).
My specific requirement is I want to add participant to event and at the same time want to specify the participants calendar.
Let us say I have 2 users. User-A and User-B
User-A is creating calendar event and adding User-B as participant
User-A's calendar is Cal-A and User-B's calendar is Cal-B.
Now when User-A adds User-B as participant, an event is created in User-B's calendar but is created in his/her static calendar. Is there is a way, how I can specify (using java api) that the invitation/ event created by User-B should go into User-B's Calendar-B?
Note: in the applicaiton program, I have access to both User-A' calendar and User-B's calendar.
Thanks in advance.
I believe the short answer is no...
Google Calendar, regardless of the API or the language you use, is based on the iCalendar standard, which, from my readings of it, does not have the concept of "Invite a participant and post event invitation on this specific calendar of that participant." If I'm wrong, the quickest way to get your answer and prove me wrong is to find evidence of such a feature in the iCalendar documentation.
I thought I had a workaround, which is "Hey, if you have access to person-B's calendar, why not just create the event on their calendar and add person-A as an attendee?" I did this by sharing one of my sub-calendars of one of my Google Calendar accounts with another. But sure enough, you get the same problem in reverse. Now person-B has the event in the right place, but person-A has it on their default calendar.
So depending on which is your "primary" account, you may want to go that route, but I'm guessing you find that about as appealing as what you're dealing with already.
The only other workaround I found (which was not all that great), is you can access Person-B's calendar and copy the invite to another calendar (the one you want), and then delete it from the main calendar. This will work (I tried it), but obviously it's not as graceful as what you had in mind. If you need specifics on how to copy/delete or how to access a specific non-default calendar, let me know and I'll post some examples.
It is possible (even if the solution isn't nice). If the person knows the ID of your other calendar (which is a valid email address), he can send the invitation to the email address. The ID can be found in the settings of the calendar and has the form ...#group.calendar.google.com.
Have a look at my other answer at a similar question for a list of drawbacks of this solution.