I am successfully able to read/write calendar and events using Google Calendar API. I would like to get an actual private URL to the calendar in the same code. How can I do this?
Edit:
I suspect all I need is obtain magicCookie through API, but I do not see that this is possible can anyone confirm if it is or it is not?
Retrieving of magic cookies through the API is not possible.
Related
I know that it's deprecated for almost 4 years now. I'm interested if there are some updates on it? maybe there are now some roundabouts to get watch history data? Maybe it's somehow possible to get it through my google activities? (I know there is a way to download it to your drive through google takeouts, but that does not solve my problem, because the only thing I can get is access token from google through OAuth 2.0, which I can later use to obtain data through youtube data API. I.e I can't log in to google account)
How can I use the Microsoft Graph API to import/subscribe an Office365 user to a calendar hosted at a URL in iCal format? For example, suppose I have a calendar hosted at https://example.org/events.ical and I want this calendar to appear in a user's Outlook hosted on Office365?
If I were doing it manually I'd follow these instructions. But I can't find a Graph API for doing it.
Doing the AzureAD auth/permissions/token isn't an issue, I have that all working. It's just which API to call for Outlook on Office365.
I'm afraid this isn't a supported method. You would need to parse the events from the iCal feed in your app and then use Graph to create the actual events.
I'm still using old V2 api and now i get https://youtube.com/devicesupport.
My current request is:
https://gdata.youtube.com/feeds/api/users/{username}/uploads?alt=jsonc&max-results=15&v=2
There is no authentication required to make that call
Question:
Any idea how to achieve the same with new Google V3 API? I check documentation but didn't found answer for that.
I had the same problem with V3 api. I think you can't access videos informations without authentication anymore, but you don't need to use an OAuth to get a snippet from some video or search. I was searching a simple solution for my app, because I just want to request title, thumb and descriptions.
The new url will be:
https://www.googleapis.com/youtube/v3/videosid={VIDEO_ID}&part=snippet&key={YOU_API_KEY}
You need to access google developers console, enable youtube api and your public access key - on credentials (API KEY), so they can relate your app to all requests.
And I found this example in PHP if you need to parse JSON result:
http://www.leenooks.com/php/parsing-youtube-v3-json-with-php-examples.html
I'm still don't know all the limitations of V3, I was using V2 too, but maybe for uploads, or more control for youtube accounts you'll have to use OAuth.
I hope this will help you.
I coded a desktop calendar application a while ago, based on an existing database for an older calendar.
A bit later I added functionality to interact with google calenders using the v2 api, that is deprecated for a while now. Functionality might brake in november: Deprecation Policy ..so I thought it's about time to update to the v3 api.
What my calendar application does related to google calendar:
Writing/Reading in a shared google calendar
Writing/Reading in own (multiple) private google calendars
Syncing private/shared google calendars into an own database.
In v2 it was pretty easy to login to any calendar having the credentials with the GoogleDataApi
CalendarService calService = new CalendarService("MyCalendar");
calService.setUserCredentials(account, password);
and then reading, writing, update events.
In the v3 api theres no clientlogin anymore, how would I proceed with oauth2 to achieve the same functionality? How would I let a user login from my desktop application to his google calendars, so he is able to sync/view/edit/add google events?
Updating is a good idea! For v3 you should take a look at Oauth2 for desktop app (you will need to get and store Oauth2 access token and a refresh token for your users to not need the user to re-enter their credentials). The calendar documentation for this: https://developers.google.com/google-apps/calendar/auth
The generic Oauth2 documentation: https://developers.google.com/accounts/docs/OAuth2InstalledApp
Some more documentation from drive: https://developers.google.com/drive/web/about-auth
And the most useful of all, the playground to try stuff out: https://developers.google.com/oauthplayground/
My client has created a calendar which is private. He provided ClientId, Secret, and Google Server API Key.
He says it is possible to read events using auth, but I can't find a way. I created my own public calendar and reading events and was successful, but when I made it private it was not working.
Can someone explain me how Google api works? I read the documentations but it's complicated.
My client does not wish to share calendar as public or give emailId password, and says it is possible to fetch events. I don't think it's possible but I am looking for an answer from experienced person.
Your client is correct. You need to read about service accounts at https://developers.google.com/accounts/docs/OAuth2ServiceAccount