Using Office 365 REST API I can easily read the main calendar of a given account. A simple example using PHP is given here.
But how do I read the secondary calendars like "test" shown in the screenshot below? Events from secondary calendars don't show up in the API requests. Somehow it makes sense that I must tell the API which calendar I want to access (there could be many of them), but where or how in the API call do I do that?
I found the answer here:
Get a collection of series master and single instance events from the
user's primary calendar (../me/events) or from a different calendar.
GET
https://outlook.office.com/api/v2.0/me/calendars/{calendar_id}/events
where {calendar_id} is the ID of the calendar you wish to access.
You can find how to obtain the ID in this answer.
It works.
Related
How can I get the calendar of a particular user?
Im working on a Podio-to-calendar implementation and want to do that, but so far, I had no positive results.
I can get all the events for workspace, app, etc using the examples and documentation in https://developers.podio.com/doc/calendar .
Is there any calendar method to get the data for a user across Podio?
In that case, can I get even the data that has been synced from another calendar, like the one in my google account? I have the feeling that those events are not saved as podio items at all, am i right?
For getting global calendar I'd start with https://developers.podio.com/doc/calendar/get-global-calendar-22458 method.
For linked account's calendars, you are right - Podio doesn't import event from them as items, they are only displayed on calendar. To get those you should use: https://developers.podio.com/doc/calendar/get-linked-account-calendar-78081299. And to get linked account, you will need this one: https://developers.podio.com/doc/linked-accounts
I've been researching this question for the last few weeks and have had no success trying to connect to Google through OAuth1 OR 2.
I have a client that needs a separate Calendar for each of the homes they are building. On creation of a new home in the database, I want to create a calendar and save the Id of the created calendar.
What options do I have to do this?
It seems like the only way is to have the user get redirected to Google and login to add a calendar... I want to use a static Google account and simply create the calendar that way, without having the annoying "Login to google" screen.
Google api lets you to do whatever you need with a Calendar using their provided libraries. Let's take a look: Google Developer: Instantiate Google Calendar
This SO posts discusses that. Specifically pay attention to the line in the accepted answer where it is mentions the process for adding a new calendar is similar to adding an event.
SO: Google Calendar API Selecting and creating Calendars
I also came across this tutorial which may be helpful in terms of other actions on the calendar once it has been created.
IBM Developer Works: Integrate your PHP Application with Google Calendar
I have a question regarding the creation of event invites by a facebook application, and the ability to invite the users who have approved that applications permissions to this event.
For example, we are a local nightclub who have an app allowing users to connect with the app to see who else is attending events etc, and keep up to date with information about the events we host. It would be ideal to be able to send an event invite to these users when we have special events or theme nights.
Currently the app has around 10,000 approved users.
Just really looking to find out if this is at all possible with the new open graph api? In particular the info provided at:
Event API Reference
How To Use the Graph API to Manage Events
There does seem to be some confusion over what these posts say can be achieved, and what actually can be achieved.. unless those that I have previously spoken to are still basing their opinions on the old rest api.
Clarification and pointers appreciated!
The HTTP POST if you use the ?users= can only handle so many IDs before the length of the url overruns. Since it's a post, you can specify the users parameter and then a comma separated list of ids for the value. Try it out here: http://developers.facebook.com/tools/explorer?method=GET&path=me
I am planning to use FB API to access "Events". For an example if I select Sri Lanka. All events by that location. If you guys had any luck with that let me know. I am browsing trough FQL to get this done didn't have much luck.
This does look like something helpful , i found it from a search , but couldn't. Get it to work as I need.
https://graph.facebook.com/search?q=coffee&type=post&geo=id&lang=indonesia&location=indonesia
Please post me up if you guys have any idea.
PS : Final outcome it to grab Events from FB and post on a blog something similar to tumblr.
I haven't done much work on Facebook platform but the following information might help you:
Read the Developer Documentation as it will tell you how to use API methods and what are their limitations
From what I understand, you can use https://graph.facebook.com/me/events?access_token=[a valid access token] to get events that the current user has been invited to or hosting. It is important to understand that this information are per user basis and each user will have to authorize your application to use information about their subscribed events. This means that it may not be possible to do something like 'Get a list of all events taking place in Colombo, Sri Lanka'. However you could use the above mentioned api method to collect data from users who use your application. You can then use this data retrospectively create a graph showing all public events information.
Hope that helps.
Dinesh.
Facebook doesn't support searching for events by location from the API. However you can use the graph search like this: https://graph.facebook.com/search?q=srilanka&type=event this will search for events having "srilanka" in either the description or the name or as their location. This does not guarantee that the events are from sri lanka but you can filter out the results based on the "location" field returned by the api.
In one page on my personal site, I like to be able to see some data get from Google Analytics.
I like to have a list of all my site and the average visitor per week or per month over the current year
I have check some solution:
Yahoo Pipe (look complicated)
Google Analytics PHP API class(look nice)
Google Analytics API (look official)
Dimension Analyzer for Google Analytics(look fancy)
So at this point, it have done my research, but none give me something i like to have. Getting a JSON from google would be nice. I will have to parse a XML maybe, but i like to see simpler solutions.
ANYthing would be nice too see
The current version of the Core Reporting API supports this.
You can use the PHP client to access the API. You'll need to register your project in the API console to obtain OAuth 2.0 client ID and secret.