I am building a JS Webapp with the new Office 365 REST Api. My problem is, that I am no getting all occurence events from a Roomcalendar.
Has anybody an Idea?
I am trying to receive all Events with this URL:
https://outlook.office365.com/EWS/OData/Users(room#exampledomain.com)/Events?$top=100&$filter=End%20ge%202014-08-20T22:30:00Z%20and%20Start%20le%202020-12-14T22:30:00Z
Thanks in advance
The server will page the results back to you in lots of 100 (AFIAK), your date range is quite large 2014-2020 if you have Recurring appointments with no End date your more then likely going to get pages of results. Check the Results you getting back for #odata.nextLink eg
"#odata.nextLink": "https://outlook.office365.com/EWS/OData/Users('user#domain.onmicrosoft.com')/Events/?%24top=100&%24filter=End+ge+2014-08-20T22%3a30%3a00Z+and+Start+le+2020-12-14T22%3a30%3a00Z&%24skip=100"
This is what you should use to the get the next page of results
Cheers
Glen
Related
I'm working on a script to automatically schedule certain tasks for some users at my company. When the tasks get scheduled will be based on the user's workweek and workday, which can be customized in Google Calendar. Most of us have a M-F work week, but we have flexible schedules so for some of us, their work day may be 7-3, others 8-4, or 9-5. Some may work 4 days a week, 10 hours a day so they work Mon-Thur, 7-5, 8-6, or 9-7. That's not counting second shift, third shift, etc. I don't want the tasks to be scheduled outside of their workdays.
How can I access these settings from Apps Script?
Unfortunately, it is currently not possible to get Working Hours information through Calendar API.
Although you can query whether there are conflicting events for a given calendar/time-frame using Freebusy.query(), this method will not return a “busy” response when querying for a time-frame out of working hours.
Additionally, there is currently a new Google API in alpha called Calendar User Availability API but it currently only exposes Working Location queries not Working Hours.
More information about Calendar User Availability API on this blog post
Alternatively, you can file a new Feature Request with Google using this template
I've been trying to use Zoopla's property search API a few days now. First day I used the API, it was straight forward. I registered for a new key, and could do requests via the documentation. Starting yesterday, all the requests I would do would always return a 403 response with the body <h1>Developer Inactive</h1>.
I tried creating a new API key but the problem is still the same. Is anyone using the API that can share some knowledge about it? Seems to be deprecated, but I cannot understand how I was getting results from it without issues for a single day.
https://developer.zoopla.co.uk/docs/Property_listings
Ive just hit the exact same issue, trying to create an app using the API, worked great on the first day, but since coming back to my project today it no longer works!
It appears the API is dead and no longer maintained - https://medium.com/#mariomenti/how-not-to-run-an-api-looking-at-you-zoopla-bda247e27d15
Very frustrating.
The API is in the process of getting shut down and moved to a new solution.
When signing up to the API, it does not tell you this, which is strange.
When you sign up, the API key will die after 24 hours. However, if you email help#zoopla.co.uk with your email address and API key, they will reinstate the API access.
disclosure. I am not a programmer
For the past year or so I have been utilizing the Facebook Graph API to pull Facebook page "likes" into a spreadsheet so that I can track how many likes my page gets vs other pages of similar business. It is kind of rudimentary but it became cumbersome to have to visit every page each week to get the total page "Likes" so this my solution.
I was utilizing this formula...
=importjson(concatenate("https://graph.facebook.com/",APINames!$B11,"?access_token=",$B$1),"/likes","noHeaders")
I reference this post...
Get Facebook page like count for OpenGraph v2.10
Which states to use the a different URL to retrieve page likes.
https://graph.facebook.com/v2.10/<page-id>?access_token=<access-token>&fields=fan_count
When inputting the new URL in my formula function I still receive a reference error.
=importjson(concatenate("https://graph.facebook.com/v2.10/",APINames!$B3,"?access_token=",$B$1),"&fields=fan_count","noHeaders")
If anyone could point me in the right direction I would be very grateful. I have spent over an hour scouring the web for information as well as reading the new changelog for v2.10. I fear going back to the manual process!!
I'm not 100% sure, but you should try this:
=importjson(concatenate("https://graph.facebook.com/v2.10/",APINames!$B3,"?access_token=",$B$1,"&fields=fan_count"),"/fan_count", "noHeaders")
I think the brackets are on the wrong place, because you need to concatenate the url, the page-id (in APINames), the query parameter access_token, the access token form cell B1 and the fields query_parameter.
At least with this change I get a fan_count. Interesting use case, BTW.
I am interested in getting the number of emails sent and received(in priority inbox) on the current day. Nothing more.
Using the REST API in Google App Script.
GET https://www.googleapis.com/gmail/v1/users/your_email%40gmail.com/messages?labelIds=SENT&q=newer_than%3A1d&key={YOUR_API_KEY}
To get the number of messages received/sent in the last 24 hours, you can use the gmail.users.messages.list API. You must specify the following query: newer_than:1d to only get a list of emails that were recieved/sent in the past 24 hours. You must also specify which label to query in (INBOX or SENT). Please refer to the following screenshot. You can test it out for yourself here.
I've started looking into Google Places API recently and have enabled the API through my Google Developer Console. I tested the API through the following URL in my browser (please note that I have intentionally changed my key below):
https://maps.googleapis.com/maps/api/place/textsearch/xml?query=hotel&location=43.683308,-79.614296&radius10000&key=thisismykey478erjr84
Worked fine, I got back the XML, but when I tried it again I got the following:
<PlaceSearchResponse>
<status>INVALID_REQUEST</status>
</PlaceSearchResponse>
Now, as far as I know I'm given a courtesy limit of 1,000 requests/day. I know I did not go over 1000 requests. I figured maybe I'm only allowed a certain number of requests per hour or per minute so I waited.
Next day same problem! And today as well.
Not sure what to do in this case, any advice?
The radius parameter is missing the = separator. Try radius=10000.